Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/imsi.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-2/+2
| | | | | | | | | | | 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
* Correctly split IMSI with multi-length MNCArthur de Jong2018-04-101-2/+2
| | | | | | | | | | | | Ensures that imsi.split() will correctly split the IMSI into an MCC, MNC and MSIN even if not all MNCs within a single MCC have the same length. This has the downside of not being able to guess the MNC length in some cases. This also omits empty information from the data file and updates the data file from Wikipedia. Closes https://github.com/arthurdejong/python-stdnum/issues/68
* Docstring improvementsArthur de Jong2017-09-111-2/+2
|
* Raise InvalidComponent for unregistered IMSIArthur de Jong2015-04-171-3/+3
|
* Implement validate() for IMSIArthur de Jong2013-06-081-12/+24
|
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-261-2/+4
| | | | | | 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/+4
| | | | | | functions (for now clean()) git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@100 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an IMSI (International Mobile Subscriber Identity) ↵Arthur de Jong2011-09-231-0/+80
module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@83 9dea7c4f-944c-4273-ac1a-574ede026edc