diff options
author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 11:44:26 +0100 |
---|---|---|
committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 11:44:26 +0100 |
commit | 322eb0a4e45d0f02deb986b5e60b423738fd7cf8 (patch) | |
tree | 6e5d810b512530734ba68544d744546aad1b3a53 | |
parent | 4085f4266b3010f8e44d32d833c8854b054f5c23 (diff) | |
download | paste-git-322eb0a4e45d0f02deb986b5e60b423738fd7cf8.tar.gz |
Python 3: Use an explicit floor division
-rw-r--r-- | paste/exceptions/serial_number_generator.py | 2 |
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='', |