diff options
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2020-12-11 19:26:49 +0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-11 19:26:49 +0500 |
commit | 48357882e5c095003e10f8351b405bf54e41424f (patch) | |
tree | ca93bbc48c8a98bec36101d235047c58adbc0fe0 | |
parent | 1e126c5f96e688dd89454ea6463de93e2f65cacb (diff) | |
download | appdirs-48357882e5c095003e10f8351b405bf54e41424f.tar.gz |
Use ternary operator for better readability
-rw-r--r-- | appdirs.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -76,7 +76,7 @@ def user_data_dir(appname=None, appauthor=None, version=None, roaming=False): if system == "win32": if appauthor is None: appauthor = appname - const = roaming and "CSIDL_APPDATA" or "CSIDL_LOCAL_APPDATA" + const = "CSIDL_APPDATA" if roaming else "CSIDL_LOCAL_APPDATA" path = os.path.normpath(_get_win_folder(const)) if appname: if appauthor is not False: |