mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 03:14:23 +00:00
Revert "Make zip strict argument optional to support Python 3.9"
This reverts commit 3bdce4fbc3.
This commit is contained in:
@@ -6,14 +6,11 @@ for each day as a key there is a list of working times with the format
|
||||
|
||||
"""
|
||||
|
||||
import sys
|
||||
import re
|
||||
from datetime import time, datetime
|
||||
from typing import Any
|
||||
from ifc4d.common import WorkSlot
|
||||
|
||||
ZIP_STRICT = {} if sys.version_info < (3, 10) else {"strict": True}
|
||||
|
||||
|
||||
class AstaCalendarWorkPattern:
|
||||
def get_keys(self, s: str) -> list[str]:
|
||||
@@ -123,7 +120,7 @@ class AstaCalendarWorkPattern:
|
||||
self.values = self.get_values(string)
|
||||
self.dict_wp: list[WorkSlot] = []
|
||||
|
||||
for value, day_name in zip(self.values[1:], self.day_names, **ZIP_STRICT):
|
||||
for value, day_name in zip(self.values[1:], self.day_names, strict=True):
|
||||
splt_data = value.strip().split(",")
|
||||
workhours: list[dict[str, Any]] = []
|
||||
if len(splt_data) >= 7:
|
||||
|
||||
Reference in New Issue
Block a user