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/tabs/rostertab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poezio/tabs/rostertab.py') diff --git a/poezio/tabs/rostertab.py b/poezio/tabs/rostertab.py index 43c612d0..11473e83 100644 --- a/poezio/tabs/rostertab.py +++ b/poezio/tabs/rostertab.py @@ -611,7 +611,7 @@ class RosterInfoTab(Tab): n = the_input.get_argument_position() if n == complete_number: if args[n - 1] == '' or len(args) < n + 1: - home = os.getenv('HOME') or '/' + home = os.getenv('HOME', default='/') return Completion( the_input.new_completion, [home, '/tmp'], n, quotify=True) path_ = Path(args[n]) -- cgit v1.2.3