forked from platformio/platformio-core
Add support for Python 3.12
This commit is contained in:
1 parent
4cad98601d
commit
998da59f7c
3 files changed
+6
-5
No files matched your search
+2
-3
@@ -170,9 +170,8 @@ def items_in_list(needle, haystack):
|
||||
|
||||
|
||||
def parse_datetime(datestr):
|
||||
if "T" in datestr and "Z" in datestr:
|
||||
return datetime.datetime.strptime(datestr, "%Y-%m-%dT%H:%M:%SZ")
|
||||
return datetime.datetime.strptime(datestr)
|
||||
assert "T" in datestr and "Z" in datestr
|
||||
return datetime.datetime.strptime(datestr, "%Y-%m-%dT%H:%M:%SZ")
|
||||
|
||||
|
||||
def merge_dicts(d1, d2, path=None):
|
||||
|
||||
Reference in new issue
Block a user