From 2a9f806a69f12772d3ae4e770bd37dccf546c0c4 Mon Sep 17 00:00:00 2001 From: theodorerose Date: Mon, 14 Mar 2022 23:58:36 +0000 Subject: [PATCH] update python to 3 --- update_version.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/update_version.py b/update_version.py index 3a96991816d6..e1f259eb824e 100755 --- a/update_version.py +++ b/update_version.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Usage: ./update_version.py .. [] # # Example: @@ -201,7 +201,7 @@ def RewritePbH(line): '#if %s < PROTOBUF_MIN_PROTOC_VERSION' % cpp_version, line) return line - + RewriteTextFile('src/google/protobuf/stubs/common.h', RewriteCommon) RewriteTextFile('src/google/protobuf/port_def.inc', RewritePortDef) RewriteTextFile('src/google/protobuf/any.pb.h', RewritePbH) @@ -268,7 +268,7 @@ def UpdateJava(): RewriteXml('protoc-artifacts/pom.xml', lambda document : ReplaceText( Find(document.documentElement, 'version'), GetFullVersion())) - + RewriteTextFile('java/README.md', lambda line : re.sub( r'.*',