diff options
Diffstat (limited to 'subcmds/selfupdate.py')
-rw-r--r-- | subcmds/selfupdate.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/subcmds/selfupdate.py b/subcmds/selfupdate.py index 46aa3a19..d12e08d0 100644 --- a/subcmds/selfupdate.py +++ b/subcmds/selfupdate.py | |||
@@ -13,6 +13,7 @@ | |||
13 | # See the License for the specific language governing permissions and | 13 | # See the License for the specific language governing permissions and |
14 | # limitations under the License. | 14 | # limitations under the License. |
15 | 15 | ||
16 | from __future__ import print_function | ||
16 | from optparse import SUPPRESS_HELP | 17 | from optparse import SUPPRESS_HELP |
17 | import sys | 18 | import sys |
18 | 19 | ||
@@ -52,7 +53,7 @@ need to be performed by an end-user. | |||
52 | 53 | ||
53 | else: | 54 | else: |
54 | if not rp.Sync_NetworkHalf(): | 55 | if not rp.Sync_NetworkHalf(): |
55 | print >>sys.stderr, "error: can't update repo" | 56 | print("error: can't update repo", file=sys.stderr) |
56 | sys.exit(1) | 57 | sys.exit(1) |
57 | 58 | ||
58 | rp.bare_git.gc('--auto') | 59 | rp.bare_git.gc('--auto') |