lists.arthurdejong.org
RSS feed

python-stdnum commit: r138 - python-stdnum/stdnum/it

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

python-stdnum commit: r138 - python-stdnum/stdnum/it



Author: arthur
Date: Fri Feb 17 23:24:17 2012
New Revision: 138
URL: http://arthurdejong.org/viewvc/python-stdnum?revision=138&view=revision

Log:
strip a few more separators

Modified:
   python-stdnum/stdnum/it/iva.py

Modified: python-stdnum/stdnum/it/iva.py
==============================================================================
--- python-stdnum/stdnum/it/iva.py      Fri Feb 17 23:18:48 2012        (r137)
+++ python-stdnum/stdnum/it/iva.py      Fri Feb 17 23:24:17 2012        (r138)
@@ -42,7 +42,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('IT'):
         number = number[2:]
     return number
-- 
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/python-stdnum-commits/