comparison mercurial/pycompat.py @ 43088:0d612db7047c

py3: stop injecting pycompat.hasattr into modules I only found a single user of this pattern, probably because we use util.hasattr everywhere. Differential Revision: https://phab.mercurial-scm.org/D7008
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 06 Oct 2019 16:39:13 -0400
parents 66f2cc210a29
children c59eb1560c44
comparison
equal deleted inserted replaced
43087:66f2cc210a29 43088:0d612db7047c
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 hasattr = hasattr
358 setattr = setattr 359 setattr = setattr
359 360
360 # this can't be parsed on Python 3 361 # this can't be parsed on Python 3
361 exec(b'def raisewithtb(exc, tb):\n' b' raise exc, None, tb\n') 362 exec(b'def raisewithtb(exc, tb):\n' b' raise exc, None, tb\n')
362 363