diff mercurial/pycompat.py @ 43087:66f2cc210a29

py3: manually import pycompat.setattr where it is needed Continuing to eliminate the implicit import of symbols in the Python 3 source transformer so we can eliminate it. Differential Revision: https://phab.mercurial-scm.org/D7007
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 06 Oct 2019 14:58:42 -0400
parents eef9a2d67051
children 0d612db7047c
line wrap: on
line diff
--- a/mercurial/pycompat.py	Sun Oct 06 14:51:45 2019 -0400
+++ b/mercurial/pycompat.py	Sun Oct 06 14:58:42 2019 -0400
@@ -355,6 +355,7 @@
     strurl = identity
     bytesurl = identity
     open = open
+    setattr = setattr
 
     # this can't be parsed on Python 3
     exec(b'def raisewithtb(exc, tb):\n' b'    raise exc, None, tb\n')