Skip to content

Commit d711735

Browse files
committed
Remove unused imports
1 parent 54e83c8 commit d711735

File tree

4 files changed

+1
-6
lines changed

4 files changed

+1
-6
lines changed

bpython/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from six.moves.configparser import ConfigParser
1111

1212
from .autocomplete import SIMPLE as default_completion, ALL_MODES
13-
from .keys import cli_key_dispatch as cli_key_dispatch
1413

1514

1615
class Struct(object):

bpython/curtsiesfrontend/interpreter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from bpython.curtsiesfrontend.parse import parse
1313
from bpython.repl import Interpreter as ReplInterpreter
14-
from bpython.config import getpreferredencoding
1514

1615

1716
default_colors = {

bpython/importcompletion.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import os
3333
import sys
3434
import warnings
35-
from warnings import catch_warnings
3635
from six.moves import filter
3736

3837
if py3:
@@ -146,7 +145,7 @@ def find_modules(path):
146145
# Workaround for issue #166
147146
continue
148147
try:
149-
with catch_warnings():
148+
with warnings.catch_warnings():
150149
warnings.simplefilter("ignore", ImportWarning)
151150
fo, pathname, _ = imp.find_module(name, [path])
152151
except (ImportError, IOError, SyntaxError):

bpython/simpleeval.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
import inspect
3535
from six import string_types
3636
from six.moves import builtins
37-
import sys
38-
import types
3937

4038
from . import line as line_properties
4139
from ._py3compat import py3

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy