Skip to content

Commit

Permalink
Merge pull request #9632 from esorot/update-python-version
Browse files Browse the repository at this point in the history
update python to 3
  • Loading branch information
esorot authored Mar 15, 2022
2 parents 16dccd6 + 2a9f806 commit e0cec17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions update_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# Usage: ./update_version.py <MAJOR>.<MINOR>.<MICRO> [<RC version>]
#
# Example:
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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'<version>.*</version>',
Expand Down

0 comments on commit e0cec17

Please sign in to comment.