Skip to content

Commit a802cbb

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/platformdirs/unix.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ def _site_data_dirs(self) -> list[str]:
4848
path = os.environ.get("XDG_DATA_DIRS", "")
4949
if not path.strip():
5050
path = f"/usr/local/share{os.pathsep}/usr/share"
51-
return [self._append_app_name_and_version(p)
52-
for p in path.split(os.pathsep)]
51+
return [self._append_app_name_and_version(p) for p in path.split(os.pathsep)]
5352

5453
@property
5554
def site_data_dir(self) -> str:
@@ -80,8 +79,7 @@ def _site_config_dirs(self) -> list[str]:
8079
path = os.environ.get("XDG_CONFIG_DIRS", "")
8180
if not path.strip():
8281
path = "/etc/xdg"
83-
return [self._append_app_name_and_version(p)
84-
for p in path.split(os.pathsep)]
82+
return [self._append_app_name_and_version(p) for p in path.split(os.pathsep)]
8583

8684
@property
8785
def site_config_dir(self) -> str:

0 commit comments

Comments
 (0)