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