diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2016-07-26 21:38:15 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2016-07-26 21:38:15 +0200 |
commit | aa1c298cf706eda127b07a2c2d6705fff423b569 (patch) | |
tree | 53ab6e5f7851ec9acfb2ddebd953f8bb608a2c9d /getnumlist.py | |
parent | 411d0381331334dd6b739f8d0527b56af741a90a (diff) |
Implement Damm algorithm
This is a generic check digit algorithm.
Diffstat (limited to 'getnumlist.py')
-rwxr-xr-x | getnumlist.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/getnumlist.py b/getnumlist.py index 4c74479..c8b9b4d 100755 --- a/getnumlist.py +++ b/getnumlist.py @@ -28,7 +28,8 @@ from stdnum import util # these are excluded -algortihms = ('stdnum.verhoeff', 'stdnum.luhn', 'stdnum.iso7064') +algortihms = ( + 'stdnum.verhoeff', 'stdnum.luhn', 'stdnum.iso7064', 'stdnum.damm') def get_number_modules(): @@ -36,7 +37,7 @@ def get_number_modules(): for module in util.get_number_modules(): if module.__name__ not in algortihms and \ not module.__name__.startswith('stdnum.iso7064'): - yield module + yield module if __name__ == '__main__': print 'For README:' |