File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed
Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 1- import code
2- import traceback
31import sys
42from codeop import CommandCompiler
53from six import iteritems
1311from bpython .curtsiesfrontend .parse import parse
1412from bpython .repl import Interpreter as ReplInterpreter
1513from bpython .config import getpreferredencoding
16- from bpython . _py3compat import py3
14+
1715
1816default_colors = {
1917 Generic .Error : 'R' ,
Original file line number Diff line number Diff line change 33
44import contextlib
55import errno
6- import functools
76import greenlet
87import logging
98import os
1514import threading
1615import time
1716import unicodedata
18- from six .moves import range , builtins
17+ from six .moves import range
1918
2019from pygments import format
2120from bpython ._py3compat import PythonLexer
Original file line number Diff line number Diff line change 11from itertools import islice
2+ from six .moves import range
23import collections
34import inspect
45import os
56import shutil
67import socket
7- import tempfile
8- from six .moves import range
98import sys
9+ import tempfile
1010
1111from bpython ._py3compat import py3
1212from bpython import config , repl , cli , autocomplete
@@ -65,7 +65,7 @@ def test_next(self):
6565 next (self .matches_iterator )
6666
6767 self .assertEqual (next (self .matches_iterator ), self .matches [0 ])
68- self .assertEqual (next (self .matches_iterator ), self . matches [1 ])
68+ self .assertEqual (next (self .matches_iterator ), self .matches [1 ])
6969 self .assertNotEqual (next (self .matches_iterator ), self .matches [1 ])
7070
7171 def test_previous (self ):
@@ -249,8 +249,6 @@ def test_current_function_cpython(self):
249249 self .assert_get_source_error_for_current_function (
250250 collections .defaultdict , "could not find class definition" )
251251
252-
253-
254252 def test_current_line (self ):
255253 self .repl .interp .locals ['a' ] = socket .socket
256254 self .set_input_line ('a' )
You can’t perform that action at this time.
0 commit comments