comparison rhodecode/lib/vcs/backends/hg/changeset.py @ 2278:24095abde696 beta

print statement cleanup
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 16 May 2012 01:24:23 +0200
parents bb0309b4e1ee
children 5563af834d92
comparison
equal deleted inserted replaced
2277:bb0309b4e1ee 2278:24095abde696
258 elif prefix.startswith('/'): 258 elif prefix.startswith('/'):
259 raise VCSError("Prefix cannot start with leading slash") 259 raise VCSError("Prefix cannot start with leading slash")
260 elif prefix.strip() == '': 260 elif prefix.strip() == '':
261 raise VCSError("Prefix cannot be empty") 261 raise VCSError("Prefix cannot be empty")
262 262
263 print stream.closed
264 archival.archive(self.repository._repo, stream, self.raw_id, 263 archival.archive(self.repository._repo, stream, self.raw_id,
265 kind, prefix=prefix, subrepos=subrepos) 264 kind, prefix=prefix, subrepos=subrepos)
266 print stream.closed 265
267
268 if stream.closed and hasattr(stream, 'name'): 266 if stream.closed and hasattr(stream, 'name'):
269 stream = open(stream.name, 'rb') 267 stream = open(stream.name, 'rb')
270 elif hasattr(stream, 'mode') and 'r' not in stream.mode: 268 elif hasattr(stream, 'mode') and 'r' not in stream.mode:
271 stream = open(stream.name, 'rb') 269 stream = open(stream.name, 'rb')
272 else: 270 else: