| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
The problem with the latter is that it will also accept all kinds of
unicode digits that are not the ASCII 0-9 digits causing all kinds of
problems in check digit calculations.
Some of these unicode characters are also considered digits by int() but
some are not (such as the SUPERSCRIPT TWO unicode character).
Closes https://github.com/arthurdejong/python-stdnum/issues/96
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Re-enable the flake8 test for unused imports by explicitly marking
imports for namespace purposes. This allows us to remove a few unused
imports.
A few more cleanups that allow us to reduce the number of ignored flake8
ignored tests. The remaining ignored tests are now documented.
Ignore a flake8 warning about print statements because we use print in
the update scripts.
|
| |
|
|
|
|
|
|
|
| |
Ensure that regular expressions are r'' strings, avoid too long lines
and fix line wrapping. Also avoid catching toplevel Exception when
possible and use binascii for hex to binary conversion which is
available in both Python 2 and 3.
|
|
|
|
|
|
|
|
|
| |
This adds a number of tests for numbers found online. The length check
has also been revisited because both shorter numbers and longer number
have been found.
This also updates the format() function to handle arbitrary length
numbers.
|
|
|
|
| |
Makes the code slightly simpler and more compact.
|
|
Based on the implementation in the vatnumber module.
|