Skip to content

Commit 86fb570

Browse files
committed
Remove some unused imports.
1 parent fd889b3 commit 86fb570

File tree

8 files changed

+3
-16
lines changed

8 files changed

+3
-16
lines changed

bpython/cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
from bpython import repl
8585
from bpython._py3compat import py3
8686
from bpython.pager import page
87-
from bpython import autocomplete
8887
import bpython.args
8988

9089
if not py3:

bpython/curtsies.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
import logging
55
import sys
66
import time
7-
from subprocess import Popen, PIPE
87
from optparse import Option
98
from itertools import izip
10-
from functools import wraps
119

1210
import curtsies
1311
import curtsies.window

bpython/curtsiesfrontend/interpreter.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import code
22
import traceback
33
import sys
4-
from pygments.style import Style
54
from pygments.token import *
65
from pygments.formatter import Formatter
76
from curtsies.bpythonparse import parse
8-
from codeop import CommandCompiler, compile_command
7+
from codeop import CommandCompiler
98
from pygments.lexers import get_lexer_by_name
10-
from pygments.styles import get_style_by_name
9+
1110

1211
default_colors = {
1312
Generic.Error:'R',

bpython/curtsiesfrontend/replpainter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# -*- coding: utf-8 -*-
1+
# -*- coding: utf-8 -*-
22
import logging
3-
import os
43

54
from curtsies import fsarray, fmtstr
65
from curtsies.bpythonparse import func_for_letter

bpython/repl.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import codecs
2727
import errno
2828
import inspect
29-
import logging
3029
import os
3130
import pydoc
3231
import requests
@@ -39,7 +38,6 @@
3938
import unicodedata
4039
from itertools import takewhile
4140
from locale import getpreferredencoding
42-
from socket import error as SocketError
4341
from string import Template
4442
from urllib import quote as urlquote
4543
from urlparse import urlparse, urljoin

bpython/test/test_autocomplete.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
from bpython import autocomplete
2-
from functools import partial
3-
import inspect
42

53
import unittest
64
try:

bpython/test/test_curtsies_painting.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# coding: utf8
2-
import unittest
32
import sys
43
import os
54

bpython/test/test_manual_readline.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
2-
from collections import namedtuple
3-
41
from bpython.curtsiesfrontend.manual_readline import *
52
import unittest
63

0 commit comments

Comments
 (0)