Skip to content

Commit daea38c

Browse files
committed
Replace sgsix.file_types by io.IOBase
1 parent 266ff55 commit daea38c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

shotgun_api3/shotgun.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import json
3636
import http.client # Used for secure file upload
3737
import http.cookiejar # used for attachment upload
38-
import io # used for attachment upload
38+
import io
3939
import logging
4040
import mimetypes
4141
import os
@@ -56,7 +56,6 @@
5656

5757
# Python 2/3 compatibility
5858
from .lib import six
59-
from .lib import sgsix
6059
from .lib import sgutils
6160
from .lib.httplib2 import Http, ProxyInfo, socks, ssl_error_classes
6261
from .lib.sgtimezone import SgTimezone
@@ -4699,7 +4698,7 @@ def http_request(self, request):
46994698
files = []
47004699
params = []
47014700
for key, value in data.items():
4702-
if isinstance(value, sgsix.file_types):
4701+
if isinstance(value, io.IOBase):
47034702
files.append((key, value))
47044703
else:
47054704
params.append((key, value))

0 commit comments

Comments
 (0)