Mercurial > dive4elements > river
diff flys-backend/contrib/shpimporter/importer.py @ 5174:b3a15fa3d88e
let import_river.sh parse gauge official numbers, typo
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 05 Mar 2013 18:54:28 +0100 |
parents | 0dae9e77c5da |
children | 90f1c5f67698 |
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/importer.py Tue Mar 05 09:51:55 2013 +0100 +++ b/flys-backend/contrib/shpimporter/importer.py Tue Mar 05 18:54:28 2013 +0100 @@ -49,7 +49,7 @@ """ Searches for a field in the current src layer that matches the expression regex. - Throws an exception if more then one field matches + Throws an exception if more than one field matches @param feat: The feature to search for attributes @param regex: The regex to look for @@ -67,7 +67,7 @@ match = re.match(regex, name, re.IGNORECASE) if match: if result: - raise Exception("More then one field matches: %s" % regex) + raise Exception("More than one field matches: %s" % regex) else: result = match.group(0) return result