summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pastepy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pastepy.py b/pastepy.py
index 1b3f221..0608faa 100644
--- a/pastepy.py
+++ b/pastepy.py
@@ -119,7 +119,7 @@ class Paste(object):
title = mp['title'].value.decode('utf-8') or None
text = mp['text'].value.decode('utf-8').replace('\r', '') or None
- hash = ''.join(random.choice(base62_alphabet) for x in xrange(5))
+ hash = ''.join(random.choice(base62_alphabet) for x in range(5))
try:
session = db.Session()