diff options
author | Sarah Owens <sarato@inkylabs.com> | 2012-11-01 22:59:27 -0700 |
---|---|---|
committer | Sarah Owens <sarato@inkylabs.com> | 2012-11-13 17:33:56 -0800 |
commit | cecd1d864fc3cf02cf50d367111e0d0e173c5dc6 (patch) | |
tree | b4f660400560dce21cd7a00ffe5a5d74b54bcb81 /subcmds/start.py | |
parent | fc241240d828d7e8302dc0876608a9d27ae1cbc7 (diff) | |
download | git-repo-cecd1d864fc3cf02cf50d367111e0d0e173c5dc6.tar.gz |
Change print statements to work in python3
This is part of a series of changes to introduce Python3 support.
Change-Id: I373be5de7141aa127d7debdbce1df39148dbec32
Diffstat (limited to 'subcmds/start.py')
-rw-r--r-- | subcmds/start.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/subcmds/start.py b/subcmds/start.py index be645314..2d723fc2 100644 --- a/subcmds/start.py +++ b/subcmds/start.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 | import sys | 17 | import sys |
17 | from command import Command | 18 | from command import Command |
18 | from git_config import IsId | 19 | from git_config import IsId |
@@ -41,7 +42,7 @@ revision specified in the manifest. | |||
41 | 42 | ||
42 | nb = args[0] | 43 | nb = args[0] |
43 | if not git.check_ref_format('heads/%s' % nb): | 44 | if not git.check_ref_format('heads/%s' % nb): |
44 | print >>sys.stderr, "error: '%s' is not a valid name" % nb | 45 | print("error: '%s' is not a valid name" % nb, file=sys.stderr) |
45 | sys.exit(1) | 46 | sys.exit(1) |
46 | 47 | ||
47 | err = [] | 48 | err = [] |
@@ -49,7 +50,7 @@ revision specified in the manifest. | |||
49 | if not opt.all: | 50 | if not opt.all: |
50 | projects = args[1:] | 51 | projects = args[1:] |
51 | if len(projects) < 1: | 52 | if len(projects) < 1: |
52 | print >>sys.stderr, "error: at least one project must be specified" | 53 | print("error: at least one project must be specified", file=sys.stderr) |
53 | sys.exit(1) | 54 | sys.exit(1) |
54 | 55 | ||
55 | all_projects = self.GetProjects(projects) | 56 | all_projects = self.GetProjects(projects) |
@@ -67,7 +68,6 @@ revision specified in the manifest. | |||
67 | 68 | ||
68 | if err: | 69 | if err: |
69 | for p in err: | 70 | for p in err: |
70 | print >>sys.stderr,\ | 71 | print("error: %s/: cannot start %s" % (p.relpath, nb), |
71 | "error: %s/: cannot start %s" \ | 72 | file=sys.stderr) |
72 | % (p.relpath, nb) | ||
73 | sys.exit(1) | 73 | sys.exit(1) |