Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove obsolete imports.

  • Loading branch information...
commit 49a6033252d49abd21e85d69862975a155de3f90 1 parent a887c2b
Bernhard Reiter authored

Showing 1 changed file with 1 addition and 4 deletions. Show diff stats Hide diff stats

  1. 5  issues.py
5  issues.py
@@ -28,9 +28,6 @@
28 28
 
29 29
 trackers = soup.document.find('trackers', recursive=False).findAll('tracker', recursive=False)
30 30
 
31  
-from urllib import urlencode
32  
-from urllib2 import HTTPError
33  
-from base64 import b64encode
34 31
 from time import sleep
35 32
 from getpass import getpass
36 33
 import requests
@@ -53,7 +50,7 @@ def rest_call(method, request, data=None):
53 50
     while True:
54 51
         try:
55 52
             return __rest_call_unchecked(method, request, data)
56  
-        except HTTPError, e:
  53
+        except requests.HTTPError, e:
57 54
             print "Got HTTPError:", e
58 55
             l = data_dict and max(map(len, data_dict.itervalues())) or 0
59 56
             if e.code == 413 or l >= 100000: # Request Entity Too Large

0 notes on commit 49a6033

Please sign in to comment.
Something went wrong with that request. Please try again.