Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/pycompat.py @ 43089:c59eb1560c44
py3: manually import getattr where it is needed
The march continues.
Differential Revision: https://phab.mercurial-scm.org/D7009
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 06 Oct 2019 16:55:18 -0400 |
parents | 0d612db7047c |
children | 1f339b503a40 |
comparison
equal
deleted
inserted
replaced
43088:0d612db7047c | 43089:c59eb1560c44 |
---|---|
353 sysbytes = identity | 353 sysbytes = identity |
354 sysstr = identity | 354 sysstr = identity |
355 strurl = identity | 355 strurl = identity |
356 bytesurl = identity | 356 bytesurl = identity |
357 open = open | 357 open = open |
358 getattr = getattr | |
358 hasattr = hasattr | 359 hasattr = hasattr |
359 setattr = setattr | 360 setattr = setattr |
360 | 361 |
361 # this can't be parsed on Python 3 | 362 # this can't be parsed on Python 3 |
362 exec(b'def raisewithtb(exc, tb):\n' b' raise exc, None, tb\n') | 363 exec(b'def raisewithtb(exc, tb):\n' b' raise exc, None, tb\n') |