We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faab6a8 commit 1e3f9f2Copy full SHA for 1e3f9f2
.hgignore
@@ -3,5 +3,7 @@ bpython.egg-info/*
3
.pyc
4
tags
5
_trial_temp
6
+.mo
7
+build/*
8
env
9
.DS_Store
bpython/repl.py
@@ -47,8 +47,19 @@
47
48
from bpython import importcompletion, inspection
49
from bpython.formatter import Parenthesis
50
+from bpython.translations import _
51
from bpython.autocomplete import Autocomplete
52
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
+
63
py3 = sys.version_info[0] == 3
64
65
0 commit comments