X Tutup
Skip to content

Commit 1e3f9f2

Browse files
committed
resolve merge issues
1 parent faab6a8 commit 1e3f9f2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.hgignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ bpython.egg-info/*
33
.pyc
44
tags
55
_trial_temp
6+
.mo
7+
build/*
68
env
79
.DS_Store

bpython/repl.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,19 @@
4747

4848
from bpython import importcompletion, inspection
4949
from bpython.formatter import Parenthesis
50+
from bpython.translations import _
5051
from bpython.autocomplete import Autocomplete
5152

53+
# Needed for special handling of __abstractmethods__
54+
# abc only exists since 2.6, so check both that it exists and that it's
55+
# the one we're expecting
56+
try:
57+
import abc
58+
abc.ABCMeta
59+
has_abc = True
60+
except (ImportError, AttributeError):
61+
has_abc = False
62+
5263
py3 = sys.version_info[0] == 3
5364

5465

0 commit comments

Comments
 (0)
X Tutup