1. cherrypy
  2. cheroot

Commits

Gustavo Picon  committed b731ece

Removed unused imports

  • Participants
  • Parent commits 363cb91
  • Branches default

Comments (0)

Files changed (8)

File cheroot/compat.py

View file
 regardless of Python version) into byte strings, and 'ntou', which translates
 native strings to unicode strings.
 """
-import os
 import re
 import sys
 

File cheroot/py3makefile.py

View file
 import socket
-import sys
 
 import _pyio as io
 DEFAULT_BUFFER_SIZE = io.DEFAULT_BUFFER_SIZE

File cheroot/test/benchmark.py

View file
 import re
 import sys
 import time
-import traceback
 
 import cherrypy
 from cherrypy import _cperror, _cpmodpy

File cheroot/test/helper.py

View file
 import threading
 from traceback import format_exc
 
-import cheroot
 from cheroot.compat import basestring, HTTPConnection
 from cheroot.compat import HTTPSConnection, ntob
 from cheroot import server, ssllib, wsgi

File cheroot/test/test_conn.py

View file
 timeout = 1
 
 
-import cheroot
 from cheroot.compat import HTTPConnection, HTTPSConnection, NotConnected
-from cheroot.compat import ntob, urlopen, unicodestr, BadStatusLine
+from cheroot.compat import ntob, urlopen, BadStatusLine
 from cheroot.test import webtest
 
 pov = 'pPeErRsSiIsStTeEnNcCeE oOfF vViIsSiIoOnN'

File cheroot/test/test_http.py

View file
 """Tests for managing HTTP issues (malformed requests, etc)."""
 
 import errno
-import mimetypes
 import socket
 import sys
 
-import cheroot
-from cheroot.compat import HTTPConnection, HTTPSConnection, py3k
-from cheroot import wsgi
+from cheroot.compat import HTTPConnection, HTTPSConnection
 
 from cheroot.test import helper
 

File cheroot/test/webtest.py

View file
 be of further significance to your tests).
 """
 
-import os
 import pprint
 import re
 import socket

File setup.py

View file
 
 from distutils.command.install import INSTALL_SCHEMES
 import sys
-import os
-import re
 
 ###############################################################################
 # arguments for the setup command