summaryrefslogtreecommitdiff
path: root/alot/helper.py
diff options
context:
space:
mode:
authorJulian Mehne <julian.mehne@posteo.de>2018-01-23 13:18:06 +0100
committerJulian Mehne <julian.mehne@posteo.de>2018-01-23 13:18:06 +0100
commitd2888c080f00d5d53ff0f30626bc3059cdc95ef8 (patch)
treec4eed139257b3ecb57ef979d5fd89d6bc3e4fb0b /alot/helper.py
parente8586c18e73920ec9c5ad3344a0fbaa53bca3954 (diff)
Rename get_env to get_xdg_env and clarify docstring.
Diffstat (limited to 'alot/helper.py')
-rw-r--r--alot/helper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/helper.py b/alot/helper.py
index 06362e06..5fab4819 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -627,7 +627,7 @@ def email_as_string(mail):
return as_string
-def get_env(env_name, fallback):
- """ Gets environment variable and returns fallback if unset or empty """
+def get_xdg_env(env_name, fallback):
+ """ Used for XDG_* env variables to return fallback if unset *or* empty """
env = os.environ.get(env_name)
return env if env else fallback