summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reiter <ockham@raz.or.at>2013-03-16 18:47:07 +0100
committerBernhard Reiter <ockham@raz.or.at>2013-03-18 01:33:54 +0100
commit49a6033252d49abd21e85d69862975a155de3f90 (patch)
tree0a3386e273cb3b6348739fcc45b71844d2d95a7e
parenta887c2b8faac16e4238f5ef374d12e3e2e5a86cb (diff)
Remove obsolete imports.
-rwxr-xr-xissues.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/issues.py b/issues.py
index 8ab7a45..2fc9a24 100755
--- a/issues.py
+++ b/issues.py
@@ -28,9 +28,6 @@ soup = BeautifulStoneSoup(open(xml_file_name, 'r'), convertEntities=BeautifulSto
trackers = soup.document.find('trackers', recursive=False).findAll('tracker', recursive=False)
-from urllib import urlencode
-from urllib2 import HTTPError
-from base64 import b64encode
from time import sleep
from getpass import getpass
import requests
@@ -53,7 +50,7 @@ def rest_call(method, request, data=None):
while True:
try:
return __rest_call_unchecked(method, request, data)
- except HTTPError, e:
+ except requests.HTTPError, e:
print "Got HTTPError:", e
l = data_dict and max(map(len, data_dict.itervalues())) or 0
if e.code == 413 or l >= 100000: # Request Entity Too Large