Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/meid.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop pinning of isort now flake8-isort has been fixedArthur de Jong2021-01-101-2/+2
| | | | | | | This changes a few inline imports in the code to pass with the new isort. Reverts 291b831
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-291-4/+4
| | | | | | | | | | | 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
* Docstring improvementsArthur de Jong2017-09-111-10/+10
|
* Ensure 100% branch coverageArthur de Jong2017-08-281-3/+4
| | | | | | | | | | | 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.
* Add unicode robustness testsArthur de Jong2017-04-011-2/+2
| | | | This tests a few unicode strings and fixes a bug in the MEID module.
* Add Python 2.6 supportArthur de Jong2016-11-141-2/+10
| | | | | This also brings the list of Python versions in setup.py in line with tox.ini.
* Code style improvementsArthur de Jong2015-10-111-6/+2
| | | | | | | 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.
* Turn on and improve branch coverageArthur de Jong2015-08-161-0/+2
|
* Fix common spelling mistakeArthur de Jong2014-11-011-1/+1
|
* Fix for invalidating MEIDs with invalid decimal bit lengthMatt McDonald2014-11-011-1/+5
| | | | See: http://arthurdejong.org/trac/python-stdnum/ticket/10
* Add pragma: no cover for Python 3Arthur de Jong2013-12-311-1/+1
| | | | Some statements are not covered in Python 3 tests.
* Remove unused importArthur de Jong2013-11-091-1/+0
|
* Implement validate() for MEIDArthur de Jong2013-06-081-39/+58
|
* re-add Python3 supportArthur de Jong2012-02-261-4/+14
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@174 9dea7c4f-944c-4273-ac1a-574ede026edc
* some more documentation improvementsArthur de Jong2012-02-261-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@168 9dea7c4f-944c-4273-ac1a-574ede026edc
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-261-4/+6
| | | | | | usable format git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
* implement a stdnum.util module for holding utility ↵Arthur de Jong2012-02-041-2/+5
| | | | | | functions (for now clean()) git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@100 9dea7c4f-944c-4273-ac1a-574ede026edc
* make source code layout follow PEP8 moreArthur de Jong2011-08-191-13/+22
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@76 9dea7c4f-944c-4273-ac1a-574ede026edc
* spelling checkArthur de Jong2010-08-291-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@38 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a MEID (Mobile Equipment Identifier) moduleArthur de Jong2010-08-201-0/+147
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@30 9dea7c4f-944c-4273-ac1a-574ede026edc