lists.arthurdejong.org
RSS feed

python-stdnum commit: r121 - python-stdnum/stdnum/gr

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum commit: r121 - python-stdnum/stdnum/gr



Author: arthur
Date: Sun Feb 12 11:11:48 2012
New Revision: 121
URL: http://arthurdejong.org/viewvc/python-stdnum?revision=121&view=revision

Log:
also strip : as seen in some numbers

Modified:
   python-stdnum/stdnum/gr/vat.py

Modified: python-stdnum/stdnum/gr/vat.py
==============================================================================
--- python-stdnum/stdnum/gr/vat.py      Sat Feb 11 21:38:08 2012        (r120)
+++ python-stdnum/stdnum/gr/vat.py      Sun Feb 12 11:11:48 2012        (r121)
@@ -35,7 +35,7 @@
 def compact(number):
     """Convert the number to the minimal representation. This strips the
     number of any valid separators and removes surrounding whitespace."""
-    number = clean(number, ' -./').upper().strip()
+    number = clean(number, ' -./:').upper().strip()
     if number.startswith('EL') or number.startswith('GR'):
         number = number[2:]
     if len(number) == 8:
-- 
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/python-stdnum-commits/