summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/project.py b/project.py
index f72b1c8e..20a8dca4 100644
--- a/project.py
+++ b/project.py
@@ -12,6 +12,7 @@
12# See the License for the specific language governing permissions and 12# See the License for the specific language governing permissions and
13# limitations under the License. 13# limitations under the License.
14 14
15from __future__ import print_function
15import traceback 16import traceback
16import errno 17import errno
17import filecmp 18import filecmp
@@ -50,7 +51,7 @@ def _lwrite(path, content):
50 51
51def _error(fmt, *args): 52def _error(fmt, *args):
52 msg = fmt % args 53 msg = fmt % args
53 print >>sys.stderr, 'error: %s' % msg 54 print('error: %s' % msg, file=sys.stderr)
54 55
55def not_rev(r): 56def not_rev(r):
56 return '^' + r 57 return '^' + r
@@ -683,9 +684,9 @@ class Project(object):
683 if not os.path.isdir(self.worktree): 684 if not os.path.isdir(self.worktree):
684 if output_redir == None: 685 if output_redir == None:
685 output_redir = sys.stdout 686 output_redir = sys.stdout
686 print >>output_redir, '' 687 print(file=output_redir)
687 print >>output_redir, 'project %s/' % self.relpath 688 print('project %s/' % self.relpath, file=output_redir)
688 print >>output_redir, ' missing (run "repo sync")' 689 print(' missing (run "repo sync")', file=output_redir)
689 return 690 return
690 691
691 self.work_git.update_index('-q', 692 self.work_git.update_index('-q',
@@ -785,7 +786,7 @@ class Project(object):
785 out.project('project %s/' % self.relpath) 786 out.project('project %s/' % self.relpath)
786 out.nl() 787 out.nl()
787 has_diff = True 788 has_diff = True
788 print line[:-1] 789 print(line[:-1])
789 p.Wait() 790 p.Wait()
790 791
791 792
@@ -1586,7 +1587,8 @@ class Project(object):
1586 # returned another error with the HTTP error code being 400 or above. 1587 # returned another error with the HTTP error code being 400 or above.
1587 # This return code only appears if -f, --fail is used. 1588 # This return code only appears if -f, --fail is used.
1588 if not quiet: 1589 if not quiet:
1589 print >> sys.stderr, "Server does not provide clone.bundle; ignoring." 1590 print("Server does not provide clone.bundle; ignoring.",
1591 file=sys.stderr)
1590 return False 1592 return False
1591 1593
1592 if os.path.exists(tmpPath): 1594 if os.path.exists(tmpPath):