X Tutup
Skip to content

Commit 7020939

Browse files
committed
Remove some unused imports.
1 parent 55382bf commit 7020939

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

bpython/cli.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,20 @@
3333
import traceback
3434
import re
3535
import time
36-
import urllib
3736
import rlcompleter
3837
import inspect
3938
import signal
4039
import struct
4140
import termios
4241
import fcntl
43-
import string
44-
import socket
4542
import pydoc
4643
import unicodedata
4744
import textwrap
48-
from cStringIO import StringIO
4945
from itertools import takewhile
5046
from locale import LC_ALL, getpreferredencoding, setlocale
5147
from optparse import OptionParser
5248
from urlparse import urljoin
5349
from xmlrpclib import ServerProxy, Error as XMLRPCError
54-
from ConfigParser import ConfigParser, NoSectionError, NoOptionError
5550

5651
# These are used for syntax hilighting.
5752
from pygments import format

bpython/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
import sys
3-
from ConfigParser import ConfigParser, NoSectionError, NoOptionError
3+
from ConfigParser import ConfigParser
44
from itertools import chain
55
from bpython.keys import key_dispatch
66
import errno

bpython/formatter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@
2424
# Pygments really kicks ass, it made it really easy to
2525
# get the exact behaviour I wanted, thanks Pygments.:)
2626

27-
import curses
2827
from pygments.formatter import Formatter
2928
from pygments.token import Keyword, Name, Comment, String, Error, \
30-
Number, Operator, Generic, Token, Whitespace, Literal, Punctuation
29+
Number, Operator, Token, Whitespace, Literal, Punctuation
3130

3231
"""These format strings are pretty ugly.
3332
\x01 represents a colour marker, which

0 commit comments

Comments
 (0)
X Tutup