Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/iso7064/mod_37_36.py
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-02-04 20:06:53 +0100
committerArthur de Jong <arthur@arthurdejong.org>2012-02-04 20:06:53 +0100
commit548f129e5da9855ca5bdf2f2cfec33c565a54562 (patch)
tree417747b2ded2caf0470d84164f1f4c8bdf43a876 /stdnum/iso7064/mod_37_36.py
parent9efde4fd51fbf53abd089695cc2ac11587b52544 (diff)
use integer division
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@97 9dea7c4f-944c-4273-ac1a-574ede026edc
Diffstat (limited to 'stdnum/iso7064/mod_37_36.py')
-rw-r--r--stdnum/iso7064/mod_37_36.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdnum/iso7064/mod_37_36.py b/stdnum/iso7064/mod_37_36.py
index fd08393..42ed591 100644
--- a/stdnum/iso7064/mod_37_36.py
+++ b/stdnum/iso7064/mod_37_36.py
@@ -43,7 +43,7 @@ True
def checksum(number, alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'):
"""Calculate the checksum."""
modulus = len(alphabet)
- check = modulus / 2
+ check = modulus // 2
for n in number:
check = (((check or modulus) * 2) % (modulus + 1) + alphabet.index(n)) % modulus
return check