diff options
Diffstat (limited to 'subcmds/stage.py')
-rw-r--r-- | subcmds/stage.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/subcmds/stage.py b/subcmds/stage.py index 1ff85880..ff15ee0c 100644 --- a/subcmds/stage.py +++ b/subcmds/stage.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 | 18 | ||
18 | from color import Coloring | 19 | from color import Coloring |
@@ -50,7 +51,7 @@ The '%prog' command stages files to prepare the next commit. | |||
50 | def _Interactive(self, opt, args): | 51 | def _Interactive(self, opt, args): |
51 | all_projects = filter(lambda x: x.IsDirty(), self.GetProjects(args)) | 52 | all_projects = filter(lambda x: x.IsDirty(), self.GetProjects(args)) |
52 | if not all_projects: | 53 | if not all_projects: |
53 | print >>sys.stderr,'no projects have uncommitted modifications' | 54 | print('no projects have uncommitted modifications', file=sys.stderr) |
54 | return | 55 | return |
55 | 56 | ||
56 | out = _ProjectList(self.manifest.manifestProject.config) | 57 | out = _ProjectList(self.manifest.manifestProject.config) |
@@ -101,7 +102,7 @@ The '%prog' command stages files to prepare the next commit. | |||
101 | if len(p) == 1: | 102 | if len(p) == 1: |
102 | _AddI(p[0]) | 103 | _AddI(p[0]) |
103 | continue | 104 | continue |
104 | print 'Bye.' | 105 | print('Bye.') |
105 | 106 | ||
106 | def _AddI(project): | 107 | def _AddI(project): |
107 | p = GitCommand(project, ['add', '--interactive'], bare=False) | 108 | p = GitCommand(project, ['add', '--interactive'], bare=False) |