Skip to content

Commit cf6c550

Browse files
committed
Remove unused imports
1 parent 5617a43 commit cf6c550

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

bpython/curtsiesfrontend/_internal.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
# THE SOFTWARE.
2222

2323
import pydoc
24-
2524
import bpython._internal
26-
from bpython.repl import getpreferredencoding
2725

2826

2927
class NopPydocPager:

bpython/curtsiesfrontend/coderunner.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111
"""
1212

1313
import code
14-
import signal
1514
import greenlet
1615
import logging
16+
import signal
1717
import threading
1818

19-
from bpython.config import getpreferredencoding
20-
2119
logger = logging.getLogger(__name__)
2220

2321

bpython/paste.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The MIT License
22
#
3-
# Copyright (c) 2014-2015 Sebastian Ramacher
3+
# Copyright (c) 2014-2020 Sebastian Ramacher
44
#
55
# Permission is hereby granted, free of charge, to any person obtaining a copy
66
# of this software and associated documentation files (the "Software"), to deal
@@ -20,15 +20,14 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222

23-
24-
from locale import getpreferredencoding
25-
from urllib.parse import quote as urlquote, urljoin, urlparse
26-
from string import Template
2723
import errno
2824
import requests
2925
import subprocess
3026
import unicodedata
3127

28+
from locale import getpreferredencoding
29+
from urllib.parse import urljoin, urlparse
30+
3231
from .translations import _
3332

3433

bpython/urwid.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,21 @@
3131
This is still *VERY* rough.
3232
"""
3333

34-
import builtins
3534
import sys
3635
import os
3736
import time
3837
import locale
3938
import signal
39+
import urwid
4040

4141
from pygments.token import Token
4242

4343
from . import args as bpargs, repl, translations
44-
from .config import getpreferredencoding
4544
from .formatter import theme_map
4645
from .importcompletion import find_coroutine
4746
from .translations import _
48-
4947
from .keys import urwid_key_dispatch as key_dispatch
5048

51-
import urwid
52-
5349
Parenthesis = Token.Punctuation.Parenthesis
5450

5551
# Urwid colors are:

0 commit comments

Comments
 (0)