Skip to content

Commit 22e8204

Browse files
committed
Cleanup six imports - WIP
1 parent 13e0c32 commit 22e8204

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

shotgun_api3/shotgun.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
from .lib import sgsix
3535
from .lib import sgutils
3636
from .lib.six import BytesIO # used for attachment upload
37-
from .lib.six.moves import map
3837

3938
from .lib.six.moves import http_cookiejar # used for attachment upload
4039
import datetime
@@ -48,20 +47,17 @@
4847
import sys
4948
import time
5049
import json
51-
from .lib.six.moves import urllib
50+
import urllib
5251
import shutil # used for attachment download
53-
from .lib.six.moves import http_client # Used for secure file upload.
52+
import http.client # Used for secure file upload.
5453
from .lib.httplib2 import Http, ProxyInfo, socks, ssl_error_classes
5554
from .lib.sgtimezone import SgTimezone
5655

5756
# Import Error and ResponseError (even though they're unused in this file) since they need
5857
# to be exposed as part of the API.
5958
from .lib.six.moves.xmlrpc_client import Error, ProtocolError, ResponseError # noqa
6059

61-
if six.PY3:
62-
from base64 import encodebytes as base64encode
63-
else:
64-
from base64 import encodestring as base64encode
60+
from base64 import encodebytes as base64encode
6561

6662

6763
LOG = logging.getLogger("shotgun_api3")

0 commit comments

Comments
 (0)