File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -337,9 +337,9 @@ def mz_calculate_ferry_level(shape):
337337 return 13
338338
339339
340- DECIMAL_UNIT_PATTERN = re .compile ('([0-9]+(\.[0-9]*)?) *(mi|km|m|nmi|ft)$' )
341- IMPERIAL_PATTERN = re .compile ('([0-9]+(\.[0-9]*)?)\' *(([0-9]+)")?' )
342- NUMERIC_PATTERN = re .compile ('^([0-9]+(\.[0-9]*)?)$' )
340+ DECIMAL_UNIT_PATTERN = re .compile (r '([0-9]+(\.[0-9]*)?) *(mi|km|m|nmi|ft)$' )
341+ IMPERIAL_PATTERN = re .compile (r '([0-9]+(\.[0-9]*)?)\' *(([0-9]+)")?' )
342+ NUMERIC_PATTERN = re .compile (r '^([0-9]+(\.[0-9]*)?)$' )
343343
344344
345345UNIT_CONVERSION_FACTORS = {
Original file line number Diff line number Diff line change 5757
5858# used to detect station names which are followed by a
5959# parenthetical list of line names.
60- station_pattern = re .compile ('([^(]*)\(([^)]*)\).*' )
60+ station_pattern = re .compile (r '([^(]*)\(([^)]*)\).*' )
6161
6262# used to detect if an airport's IATA code is the "short"
6363# 3-character type. there are also longer codes, and ones
@@ -6676,11 +6676,11 @@ def _bus_network_importance(network, ref):
66766676 return _generic_network_importance (network , ref , {})
66776677
66786678
6679- _NUMBER_AT_FRONT = re .compile ('^(\d+\w*)' , re .UNICODE )
6680- _SINGLE_LETTER_AT_FRONT = re .compile ('^([^\W\d]) *(\d+)' , re .UNICODE )
6681- _LETTER_THEN_NUMBERS = re .compile ('^[^\d\s_]+[ -]?([^\s]+)' ,
6679+ _NUMBER_AT_FRONT = re .compile (r '^(\d+\w*)' , re .UNICODE )
6680+ _SINGLE_LETTER_AT_FRONT = re .compile (r '^([^\W\d]) *(\d+)' , re .UNICODE )
6681+ _LETTER_THEN_NUMBERS = re .compile (r '^[^\d\s_]+[ -]?([^\s]+)' ,
66826682 re .UNICODE | re .IGNORECASE )
6683- _UA_TERRITORIAL_RE = re .compile ('^(\w)-(\d+)-(\d+)$' ,
6683+ _UA_TERRITORIAL_RE = re .compile (r '^(\w)-(\d+)-(\d+)$' ,
66846684 re .UNICODE | re .IGNORECASE )
66856685
66866686
You can’t perform that action at this time.
0 commit comments