Commits

Brodie Rao committed 84a5ba1

cleanup: added missing import, removed unused imports and variables, removed star imports

  • Participants
  • Parent commits 227de9f

Comments (0)

Files changed (3)

 """
 
 
-import os, sys
+import os
 from urllib import urlencode
 
 __version__ = '0.2.0'
 # E-mail fuzzyman@voidspace.org.uk
 
 import os
+import re
 import sys
 
 __version__ = '0.3.5'
     b = '<strong>%s</strong>'
     url = b % url
     outlist = []
-    last = ''
-    next = ''
     numpages = total//numonpage
     if total%numonpage:
         numpages += 1

test/test_akismet.py

 Requires cgiutils and a file called apikey.txt
 """
 
-import cgi
 import os
 import sys
 import cgitb
 sys.path.append('../modules')
 sys.path.append('modules')
 
-from cgiutils import *
+from cgiutils import cgiprint, getrequest, replace, serverline
 import akismet
 from akismet import Akismet