changeset 30030 | 0f6d6fdd3c2a |
parent 29937 | 2c302c654451 |
child 30177 | 9626022feaa4 |
--- a/mercurial/bundle2.py Fri Sep 30 00:27:35 2016 +0200 +++ b/mercurial/bundle2.py Wed Sep 28 20:01:23 2016 +0900 @@ -159,6 +159,7 @@ error, obsolete, pushkey, + pycompat, tags, url, util, @@ -996,7 +997,7 @@ outdebug(ui, 'closing payload chunk') # abort current part payload yield _pack(_fpayloadsize, 0) - if sys.version_info[0] >= 3: + if pycompat.ispy3: raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) else: exec("""raise exc_info[0], exc_info[1], exc_info[2]""")