Skip to content

Commit 338adf3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0f22b51 commit 338adf3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

jupyter_server_fileid/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A Jupyter Server extension providing an implementation of the File ID service."""
2+
23
from .extension import FileIdExtension
34

45
__version__ = "0.9.1"

jupyter_server_fileid/manager.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -642,9 +642,7 @@ def _parse_raw_stat(self, raw_stat):
642642
raw_stat.st_ctime_ns
643643
if os.name == "nt"
644644
# st_birthtime_ns is not supported, so we have to compute it manually
645-
else int(raw_stat.st_birthtime * 1e9)
646-
if hasattr(raw_stat, "st_birthtime")
647-
else None
645+
else int(raw_stat.st_birthtime * 1e9) if hasattr(raw_stat, "st_birthtime") else None
648646
)
649647
stat_info.mtime = raw_stat.st_mtime_ns
650648
stat_info.is_dir = stat.S_ISDIR(raw_stat.st_mode)

0 commit comments

Comments
 (0)