Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/fi/associationid.py
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2016-11-14 23:53:30 +0100
committerArthur de Jong <arthur@arthurdejong.org>2016-11-14 23:54:01 +0100
commitda18e3ba8794b9eaa611c17fed23552dd51aa024 (patch)
tree9fc5dd94514d5ec35d7953b9da2a15d99a173e62 /stdnum/fi/associationid.py
parent62ebbceaf8dd7baeb6ff310da90ff8e2096af580 (diff)
Add Python 2.6 support
This also brings the list of Python versions in setup.py in line with tox.ini.
Diffstat (limited to 'stdnum/fi/associationid.py')
-rw-r--r--stdnum/fi/associationid.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdnum/fi/associationid.py b/stdnum/fi/associationid.py
index 7af46c9..4efed2b 100644
--- a/stdnum/fi/associationid.py
+++ b/stdnum/fi/associationid.py
@@ -31,11 +31,11 @@ in groups of 0-3 and 0-3 numbers. E.g. 123.123, 12.123, 1.123, 123 or 1.
>>> validate('123123123')
Traceback (most recent call last):
...
-stdnum.exceptions.InvalidLength: The number has an invalid length.
+InvalidLength: The number has an invalid length.
>>> validate('12df')
Traceback (most recent call last):
...
-stdnum.exceptions.InvalidFormat: The number has an invalid format.
+InvalidFormat: The number has an invalid format.
>>> format('123')
'123'
>>> format('1234')