Skip to content

Commit

Permalink
Add imports in rest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ederson.brilhante committed May 29, 2018
1 parent a8f1a5d commit f1da44e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
hooks:
- id: reorder-python-imports
language_version: python2.7
- repo: git://github.com/pre-commit/mirrors-autopep8
- repo: https://github.com/pre-commit/mirrors-autopep8
sha: 726322761e33581fcc0886d49a693945dece8594
hooks:
- id: autopep8
2 changes: 1 addition & 1 deletion networkapiclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@

MAJOR_VERSION = '0'
MINOR_VERSION = '8'
PATCH_VERSION = '5'
PATCH_VERSION = '8'
VERSION = '.'.join((MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION,))
11 changes: 9 additions & 2 deletions networkapiclient/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,21 @@

from networkapiclient.xml_utils import dumps_networkapi
from networkapiclient.xml_utils import loads

try:
from urllib2 import *
except:
from urllib.request import *

try:
from urlparse import urlparse
except:
from urllib.parse import urlparse

try:
from urllib2 import *
from httplib import *
except:
from urllib.request import *
from http.client import *

LOG = logging.getLogger('networkapiclient.rest')

Expand Down

0 comments on commit f1da44e

Please sign in to comment.