Skip to content

Commit 290f572

Browse files
authored
avoid index error on whole second (#649)
1 parent 7e96e66 commit 290f572

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: ["3.8", "3.9", "3.10", "3.11"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1818

1919
steps:
2020
- name: Checkout source

gcsfs/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ def created(self, path):
957957
def _parse_timestamp(self, timestamp):
958958
assert timestamp.endswith("Z")
959959
timestamp = timestamp[:-1]
960-
timestamp = timestamp + "0" * (6 - len(timestamp.rsplit(".", 1)[1]))
960+
timestamp = timestamp + "0" * (6 - len(timestamp.rsplit(".", 1)[-1]))
961961
return datetime.fromisoformat(timestamp + "+00:00")
962962

963963
async def _info(self, path, generation=None, **kwargs):

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
"Intended Audience :: Developers",
2121
"License :: OSI Approved :: BSD License",
2222
"Operating System :: OS Independent",
23-
"Programming Language :: Python :: 3.8",
2423
"Programming Language :: Python :: 3.9",
2524
"Programming Language :: Python :: 3.10",
2625
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
2728
],
2829
keywords=["google-cloud-storage", "gcloud", "file-system"],
2930
packages=["gcsfs", "gcsfs.cli"],
@@ -32,6 +33,6 @@
3233
open("README.rst").read() if os.path.exists("README.rst") else ""
3334
),
3435
extras_require={"gcsfuse": ["fusepy"], "crc": ["crcmod"]},
35-
python_requires=">=3.8",
36+
python_requires=">=3.9",
3637
zip_safe=False,
3738
)

0 commit comments

Comments
 (0)