diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-02-10 16:20:23 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-02-10 16:22:27 +0100 | 
| commit | a94f64d037f4b060a3fb25f0d601f48707cf66ba (patch) | |
| tree | 13f3b2ffea2b2e49b13a43b005b68ef0ee622d41 | |
| parent | 399bb9520ef003e4d48d4e25584cfb6db998238c (diff) | |
| download | Ishtar-a94f64d037f4b060a3fb25f0d601f48707cf66ba.tar.bz2 Ishtar-a94f64d037f4b060a3fb25f0d601f48707cf66ba.zip | |
Fix regexp to fix a python bug
* http://bugs.python.org/issue18647#msg194412
| -rw-r--r-- | archaeological_operations/data_importer.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/archaeological_operations/data_importer.py b/archaeological_operations/data_importer.py index 2c016b588..4c75ba53d 100644 --- a/archaeological_operations/data_importer.py +++ b/archaeological_operations/data_importer.py @@ -138,10 +138,10 @@ class SurfaceFormater(Formater):  #RE_ADD_CD_POSTAL_TOWN = re.compile("(.*)[, ](\d{5}) (.*?) *(?: "\  #                                   "*CEDEX|cedex|Cedex *\d*)*") -RE_NAME_ADD_CD_POSTAL_TOWN = re.compile("(.*)?[, ]*" + NEW_LINE_BREAK \ -                                      + "(.*)?[, ]*(\d{2} *\d{3})[, ]*(.+)") +RE_NAME_ADD_CD_POSTAL_TOWN = re.compile("(.+)?[, ]*" + NEW_LINE_BREAK \ +                                      + "(.+)?[, ]*(\d{2} *\d{3})[, ]*(.+)") -RE_ADD_CD_POSTAL_TOWN = re.compile("(.*)?[, ]*(\d{2} *\d{3})[, ]*(.+)") +RE_ADD_CD_POSTAL_TOWN = re.compile("(.+)?[, ]*(\d{2} *\d{3})[, ]*(.+)")  RE_CD_POSTAL_FILTER = re.compile("(\d*) (\d*)") | 
