File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 35
35
import json
36
36
import http .client # Used for secure file upload
37
37
import http .cookiejar # used for attachment upload
38
- import io # used for attachment upload
38
+ import io
39
39
import logging
40
40
import mimetypes
41
41
import os
56
56
57
57
# Python 2/3 compatibility
58
58
from .lib import six
59
- from .lib import sgsix
60
59
from .lib import sgutils
61
60
from .lib .httplib2 import Http , ProxyInfo , socks , ssl_error_classes
62
61
from .lib .sgtimezone import SgTimezone
@@ -4699,7 +4698,7 @@ def http_request(self, request):
4699
4698
files = []
4700
4699
params = []
4701
4700
for key , value in data .items ():
4702
- if isinstance (value , sgsix . file_types ):
4701
+ if isinstance (value , io . IOBase ):
4703
4702
files .append ((key , value ))
4704
4703
else :
4705
4704
params .append ((key , value ))
You can’t perform that action at this time.
0 commit comments