Skip to content

Commit c810e63

Browse files
Reformatted to avoid linter warnings
Signed-off-by: Spaceship Operations <[email protected]>
1 parent b80ac6f commit c810e63

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/platformdirs/unix.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ 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-
path_list = path.split(os.pathsep)
52-
path_list = [self._append_app_name_and_version(p) for p in path_list]
53-
return path_list
51+
return [self._append_app_name_and_version(p)
52+
for p in path.split(os.pathsep)]
5453

5554
@property
5655
def site_data_dir(self) -> str:
@@ -81,9 +80,8 @@ def _site_config_dirs(self) -> list[str]:
8180
path = os.environ.get("XDG_CONFIG_DIRS", "")
8281
if not path.strip():
8382
path = "/etc/xdg"
84-
path_list = path.split(os.pathsep)
85-
path_list = [self._append_app_name_and_version(p) for p in path_list]
86-
return path_list
83+
return [self._append_app_name_and_version(p)
84+
for p in path.split(os.pathsep)]
8785

8886
@property
8987
def site_config_dir(self) -> str:

0 commit comments

Comments
 (0)