From b1ad89fb4a772c0b396cb8907a1a1ce5973bc82e Mon Sep 17 00:00:00 2001 From: Harshal Dhumal Date: Sat, 26 Aug 2017 09:59:53 +0530 Subject: [PATCH] Using the proper python syntax to fetch the default binary path for different servers types. --- web/pgadmin/browser/server_groups/servers/types.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/web/pgadmin/browser/server_groups/servers/types.py b/web/pgadmin/browser/server_groups/servers/types.py index 29e72da6a..84e72f259 100644 --- a/web/pgadmin/browser/server_groups/servers/types.py +++ b/web/pgadmin/browser/server_groups/servers/types.py @@ -54,10 +54,7 @@ class ServerType(object): for key in cls.registry: st = cls.registry[key] - default_path = ( - config.DEFAULT_BINARY_PATHS[st.stype] if st.stype in - config.DEFAULT_BINARY_PATHS else "" - ) or "" + default_path = config.DEFAULT_BINARY_PATHS.get(st.stype, "") st.utility_path = paths.register( 'bin_paths', st.stype + '_bin_dir',