From 49b999a9faa88ef095a5f80722569e4e0f43bc73 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 15 May 2025 12:34:46 +0200 Subject: 🐛 revert geo reverse patch specific for debian bullseye MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/utils.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'ishtar_common/utils.py') 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: """ -- cgit v1.2.3