python-stdnum commit: r121 - python-stdnum/stdnum/gr
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
python-stdnum commit: r121 - python-stdnum/stdnum/gr
- 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: r121 - python-stdnum/stdnum/gr
- Date: Sun, 12 Feb 2012 11:11:49 +0100 (CET)
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/
- python-stdnum commit: r121 - python-stdnum/stdnum/gr,
Commits of the python-stdnum project