summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/generator.py b/Lib/email/generator.py
index d46549c..ada14df 100644
--- a/Lib/email/generator.py
+++ b/Lib/email/generator.py
@@ -307,13 +307,13 @@ class DecodedGenerator(Generator):
# Helper
-_width = len(repr(sys.maxint-1))
+_width = len(repr(sys.maxsize-1))
_fmt = '%%0%dd' % _width
def _make_boundary(text=None):
# Craft a random boundary. If text is given, ensure that the chosen
# boundary doesn't appear in the text.
- token = random.randrange(sys.maxint)
+ token = random.randrange(sys.maxsize)
boundary = ('=' * 15) + (_fmt % token) + '=='
if text is None:
return boundary