diff options
-rw-r--r-- | pastepy.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |