Code Review
/
modeling
/
etsicatalog.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update python2 to python3
[modeling/etsicatalog.git]
/
genericparser
/
pub
/
utils
/
restcall.py
diff --git
a/genericparser/pub/utils/restcall.py
b/genericparser/pub/utils/restcall.py
index
a8944b5
..
c83f69d
100644
(file)
--- a/
genericparser/pub/utils/restcall.py
+++ b/
genericparser/pub/utils/restcall.py
@@
-15,7
+15,7
@@
import sys
import traceback
import logging
import sys
import traceback
import logging
-import urllib
2
+import urllib
import uuid
import httplib2
import uuid
import httplib2
@@
-65,7
+65,7
@@
def call_req(base_url, user, passwd, auth_type, resource, method, content='', ad
ret = [1, "Unable to connect to %s" % full_url, resp_status]
continue
raise ex
ret = [1, "Unable to connect to %s" % full_url, resp_status]
continue
raise ex
- except urllib
2
.URLError as err:
+ except urllib
.error
.URLError as err:
ret = [2, str(err), resp_status]
except Exception as ex:
logger.error(traceback.format_exc())
ret = [2, str(err), resp_status]
except Exception as ex:
logger.error(traceback.format_exc())