diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-05-15 12:34:46 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-07-21 15:07:41 +0200 |
commit | 49b999a9faa88ef095a5f80722569e4e0f43bc73 (patch) | |
tree | cd0ec1efc352d50c31063c388af01dd841bee347 /ishtar_common/utils.py | |
parent | e57fb72cf24d0d9a444f35484c1f46d1ef5f881d (diff) | |
download | Ishtar-49b999a9faa88ef095a5f80722569e4e0f43bc73.tar.bz2 Ishtar-49b999a9faa88ef095a5f80722569e4e0f43bc73.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 620a9fed1..aef03c76d 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -3206,6 +3206,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: @@ -3216,18 +3217,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: """ |