diff options
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) |
