/breezy-hg/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy-hg/trunk

« back to all changes in this revision

Viewing changes to workingtree.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-19 21:33:07 UTC
  • Revision ID: jelmer@jelmer.uk-20181119213307-k5uhm4776q3mwr52
Fix some more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
277
277
    def get_file_sha1(self, path, stat_value=None):
278
278
        try:
279
279
            return osutils.sha_file_by_name(self.abspath(path).encode(osutils._fs_enc))
280
 
        except OSError, (num, msg):
 
280
        except OSError as xxx_todo_changeme:
 
281
            (num, msg) = xxx_todo_changeme.args
281
282
            if num in (errno.EISDIR, errno.ENOENT):
282
283
                return None
283
284
            raise