| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 54e83c8 commit d711735
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,6 @@ | |||
| 10 | 10 | from six.moves.configparser import ConfigParser | |
| 11 | 11 | ||
| 12 | 12 | from .autocomplete import SIMPLE as default_completion, ALL_MODES | |
| 13 | - from .keys import cli_key_dispatch as cli_key_dispatch | ||
| 14 | 13 | ||
| 15 | 14 | ||
| 16 | 15 | class Struct(object): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,6 @@ | |||
| 11 | 11 | ||
| 12 | 12 | from bpython.curtsiesfrontend.parse import parse | |
| 13 | 13 | from bpython.repl import Interpreter as ReplInterpreter | |
| 14 | - from bpython.config import getpreferredencoding | ||
| 15 | 14 | ||
| 16 | 15 | ||
| 17 | 16 | default_colors = { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,7 +32,6 @@ | |||
| 32 | 32 | import os | |
| 33 | 33 | import sys | |
| 34 | 34 | import warnings | |
| 35 | - from warnings import catch_warnings | ||
| 36 | 35 | from six.moves import filter | |
| 37 | 36 | ||
| 38 | 37 | if py3: | |
@@ -146,7 +145,7 @@ def find_modules(path): | |||
| 146 | 145 | # Workaround for issue #166 | |
| 147 | 146 | continue | |
| 148 | 147 | try: | |
| 149 | - with catch_warnings(): | ||
| 148 | + with warnings.catch_warnings(): | ||
| 150 | 149 | warnings.simplefilter("ignore", ImportWarning) | |
| 151 | 150 | fo, pathname, _ = imp.find_module(name, [path]) | |
| 152 | 151 | except (ImportError, IOError, SyntaxError): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,8 +34,6 @@ | |||
| 34 | 34 | import inspect | |
| 35 | 35 | from six import string_types | |
| 36 | 36 | from six.moves import builtins | |
| 37 | - import sys | ||
| 38 | - import types | ||
| 39 | 37 | ||
| 40 | 38 | from . import line as line_properties | |
| 41 | 39 | from ._py3compat import py3 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments