python-stdnum commit: r138 - python-stdnum/stdnum/it
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
python-stdnum commit: r138 - python-stdnum/stdnum/it
- From: Commits of the python-stdnum project <python-stdnum-commits [at] lists.arthurdejong.org>
- To: python-stdnum-commits [at] lists.arthurdejong.org
- Reply-to: python-stdnum-users [at] lists.arthurdejong.org
- Subject: python-stdnum commit: r138 - python-stdnum/stdnum/it
- Date: Fri, 17 Feb 2012 23:24:18 +0100 (CET)
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/
- python-stdnum commit: r138 - python-stdnum/stdnum/it,
Commits of the python-stdnum project