X Tutup
Skip to content

Commit 1b4cc8f

Browse files
committed
Use six
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 43e7038 commit 1b4cc8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/curtsiesfrontend/sitefix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22

3-
from bpython._py3compat import py3
3+
from six.moves import builtins
44

55

66
def resetquit(builtins):
@@ -15,4 +15,4 @@ def __call__(self, code=None):
1515

1616
def monkeypatch_quit():
1717
if 'site' in sys.modules:
18-
resetquit(sys.modules['builtins' if py3 else '__builtin__'])
18+
resetquit(builtins)

0 commit comments

Comments
 (0)
X Tutup