| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This converts many of the "reasonable" unicode digits that are just
variations on ASCII 0-9 to their ASCII counterparts.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
A few modules use non-ASCII characters in numbers. This introduces a
to_unicode() function in util so that it can be used by multiple
modules.
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/54
|
|
This ensures that the tests fail if 100% branch coverage is not
achieved. It also adds some pragma statements for code that cannot be
covered or is Python version dependent.
Furthermore, the get_module_list() function was removed from stdnum.util
and more tests were made from stdnum.util and stdnum.numdb. The
functionality to call format() in a country-specific IBAN implementation
was also dropped because it was not used.
|