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 7ca380d commit 92e9b0bCopy full SHA for 92e9b0b
bpython/test/test_interpreter.py
@@ -2,6 +2,7 @@
2
3
from __future__ import unicode_literals
4
5
+import linecache
6
import sys
7
8
try:
@@ -20,11 +21,7 @@
20
21
def _last_console_filename():
22
"""Returns the last 'filename' used for console input
23
(as will be displayed in a traceback)."""
- import linecache
24
- try:
25
- return '<bpython-input-%s>' % (len(linecache.cache.bpython_history) - 1)
26
- except AttributeError:
27
- return '<input>'
+ return '<bpython-input-%s>' % (len(linecache.cache.bpython_history) - 1)
28
29
class TestInterpreter(unittest.TestCase):
30
def test_syntaxerror(self):
0 commit comments