Skip to content

Commit 29e3a83

Browse files
committed
trying again to get mypy to pass on windows
1 parent 6e1cbff commit 29e3a83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fileformats/generic/fsobject.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
import platform
2+
import sys
33
import typing as ty
44
from pathlib import Path
55
from fileformats.core.fileset import FileSet
@@ -60,7 +60,7 @@ def exists(self) -> bool:
6060
return True
6161

6262
def group(self) -> ty.Optional[str]:
63-
if platform.system() == "Windows":
63+
if sys.platform == "win32":
6464
return None
6565
return self.fspath.group()
6666

@@ -75,7 +75,7 @@ def name(self) -> str:
7575
return self.fspath.name
7676

7777
def owner(self) -> ty.Optional[str]:
78-
if platform.system() == "Windows":
78+
if sys.platform == "win32":
7979
return None
8080
return self.fspath.owner()
8181

0 commit comments

Comments
 (0)