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 ecff461 commit f5179b4Copy full SHA for f5179b4
bpython/repl.py
@@ -44,8 +44,13 @@
44
from urlparse import urlparse
45
from xmlrpclib import ServerProxy, Error as XMLRPCError
46
47
-from pygments.lexers import PythonLexer
+py3 = sys.version_info[0] == 3
48
+
49
from pygments.token import Token
50
+if py3:
51
+ from pygments.lexers import Python3Lexer as PythonLexer
52
+else:
53
+ from pygments.lexers import PythonLexer
54
55
from bpython import importcompletion, inspection
56
from bpython.formatter import Parenthesis
@@ -62,8 +67,6 @@
62
67
except (ImportError, AttributeError):
63
68
has_abc = False
64
69
65
-py3 = sys.version_info[0] == 3
66
-
70
71
class Interpreter(code.InteractiveInterpreter):
72
0 commit comments