Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/pt/nif.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Docstring improvementsArthur de Jong2017-09-111-4/+3
|
* Code style improvementsArthur de Jong2015-10-111-1/+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.
* Implement validate() for Portuguese VAT numbersArthur de Jong2013-06-081-10/+22
|
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-261-2/+5
| | | | | | usable format git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a NIF (Número de identificação fiscal, Portuguese ↵Arthur de Jong2012-02-161-0/+58
VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@129 9dea7c4f-944c-4273-ac1a-574ede026edc