twython3k: fixed choose_boundary import
This commit is contained in:
parent
f991f91cf8
commit
c32c855f5b
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ import urllib.parse
|
||||||
import http.client
|
import http.client
|
||||||
import httplib2
|
import httplib2
|
||||||
import mimetypes
|
import mimetypes
|
||||||
import mimetools
|
from email.generator import _make_boundary
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import oauth2 as oauth
|
import oauth2 as oauth
|
||||||
|
|
@ -380,7 +380,7 @@ class Twython(object):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def encode_multipart_formdata(fields, files):
|
def encode_multipart_formdata(fields, files):
|
||||||
BOUNDARY = mimetools.choose_boundary()
|
BOUNDARY = _make_boundary()
|
||||||
CRLF = '\r\n'
|
CRLF = '\r\n'
|
||||||
L = []
|
L = []
|
||||||
for (key, value) in fields:
|
for (key, value) in fields:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue