More drei stuff

This commit is contained in:
Miroslav Stampar
2019-05-02 10:22:44 +02:00
parent d465007dfe
commit 6dbf24531c
8 changed files with 15 additions and 15 deletions

View File

@@ -292,7 +292,7 @@ def isstringlike(x):
def choose_boundary():
"""Return a string usable as a multipart boundary."""
# follow IE and firefox
nonce = "".join([str(random.randint(0, sys.maxint-1)) for i in (0,1,2)])
nonce = "".join([str(random.randint(0, sys.maxsize-1)) for i in (0,1,2)])
return "-"*27 + nonce
# This cut-n-pasted MimeWriter from standard library is here so can add