summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 11:44:26 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 11:44:26 +0100
commit322eb0a4e45d0f02deb986b5e60b423738fd7cf8 (patch)
tree6e5d810b512530734ba68544d744546aad1b3a53
parent4085f4266b3010f8e44d32d833c8854b054f5c23 (diff)
downloadpaste-git-322eb0a4e45d0f02deb986b5e60b423738fd7cf8.tar.gz
Python 3: Use an explicit floor division
-rw-r--r--paste/exceptions/serial_number_generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/exceptions/serial_number_generator.py b/paste/exceptions/serial_number_generator.py
index 14b009f..56f27dc 100644
--- a/paste/exceptions/serial_number_generator.py
+++ b/paste/exceptions/serial_number_generator.py
@@ -36,7 +36,7 @@ def make_identifier(number):
next = number % base
result.append(good_characters[next])
# Note, this depends on integer rounding of results:
- number = number / base
+ number = number // base
return ''.join(result)
def hash_identifier(s, length, pad=True, hasher=md5, prefix='',