diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-05-15 12:34:46 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-10-24 18:32:22 +0200 |
| commit | d7bed0e012e6da95915a75a775763b6408fb0dc0 (patch) | |
| tree | dbaf6d4dd25a6c5eed5875447728ba40a7e16be7 /ishtar_common/utils.py | |
| parent | fc5433a00b8414f4971fe5e0c8f248f757ca2681 (diff) | |
| download | Ishtar-d7bed0e012e6da95915a75a775763b6408fb0dc0.tar.bz2 Ishtar-d7bed0e012e6da95915a75a775763b6408fb0dc0.zip | |
🐛 revert geo reverse patch specific for debian bullseye
Diffstat (limited to 'ishtar_common/utils.py')
| -rw-r--r-- | ishtar_common/utils.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index e3a1a00fc..242fa4159 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -3208,6 +3208,7 @@ def fast_line_count(filename): Efficient line counter for a file """ CHUNK_SIZE = 1024 * 1024 + def _count(reader): b = reader(CHUNK_SIZE) while b: @@ -3218,18 +3219,6 @@ def fast_line_count(filename): return count + 1 -RE_NUMBER = r"[+-]?\d+(?:\.\d*)?" -RE_COORDS = r"(" + RE_NUMBER + r") (" + RE_NUMBER + r")" - - -def reverse_coordinates(wkt): - return re.sub(RE_COORDS, r"\2 \1", wkt) - - -def reverse_list_coordinates(lst): - return list(reversed(lst)) - - def add_business_days(from_date: datetime.datetime, business_days_to_add: int) -> datetime.datetime: """ |
