Permalink
Browse files

Python 3 changes for ringogw.py

  • Loading branch information...
1 parent 1586b73 commit 6e9e5be1927fc3f8f2cb3a4c4ad1908a949efb28 @didip committed Oct 14, 2014
Showing with 3 additions and 4 deletions.
  1. +3 −4 beaker_extensions/ringogw.py
@@ -96,15 +96,14 @@ def request(self, url, data = None, verbose = False,
curl.setopt(curl.WRITEFUNCTION, dec.write)
try:
curl.perform()
- except pycurl.error, x:
+ except pycurl.error as x:
if verbose:
- print "Pycurl.error:", x
+ print("Pycurl.error:", x)
return x
code = curl.getinfo(curl.HTTP_CODE)
if verbose:
- print "Request took %.2fms" %\
- (curl.getinfo(curl.TOTAL_TIME) * 1000.0)
+ print("Request took %.2fms" % (curl.getinfo(curl.TOTAL_TIME) * 1000.0))
# Request timeout
if code == 408 and retries > 0:

0 comments on commit 6e9e5be

Please sign in to comment.