diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-05-15 12:34:46 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-06-13 18:08:06 +0200 |
commit | 456b1de632c5aa9ec3983b75e60402fc509366d6 (patch) | |
tree | 2e14923c1b28f76554a4e217bfbf45bfcf540d71 /ishtar_common/utils.py | |
parent | 59dce50b1aa64c998457601fb393dc4ed2579d55 (diff) | |
download | Ishtar-456b1de632c5aa9ec3983b75e60402fc509366d6.tar.bz2 Ishtar-456b1de632c5aa9ec3983b75e60402fc509366d6.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 baaa25c95..9e2aff0ac 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -3177,6 +3177,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: @@ -3187,18 +3188,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: """ |