File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments