From 1b48f9e63d58a9278aef37c533686b5904edd616 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 15 Aug 2018 14:26:15 +0200 Subject: rostertab, common: Use the default arg of os.getenv(). --- poezio/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poezio/common.py') diff --git a/poezio/common.py b/poezio/common.py index 83587b8c..3a865054 100644 --- a/poezio/common.py +++ b/poezio/common.py @@ -47,7 +47,7 @@ def _is_in_path(command: str, return_abs_path=False) -> Union[bool, str]: and *return_abs_path* is True, otherwise False. """ - path = os.getenv('PATH') or '' + path = os.getenv('PATH', default='') for directory in path.split(os.pathsep): try: if command in os.listdir(directory): -- cgit v1.2.3