summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/Generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/Generator.py b/Lib/email/Generator.py
index 6f17963..3e578a2 100644
--- a/Lib/email/Generator.py
+++ b/Lib/email/Generator.py
@@ -363,7 +363,7 @@ _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.randint(0, sys.maxint-1)
+ token = random.randrange(sys.maxint)
boundary = ('=' * 15) + (_fmt % token) + '=='
if text is None:
return boundary