From bbeaebe77dd84039d8cd91cc9f926b4b3fe205a1 Mon Sep 17 00:00:00 2001 From: kakwa Date: Sat, 11 Jul 2015 22:05:33 +0200 Subject: [PATCH] pep8 compliance --- ldapcherry/backend/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldapcherry/backend/__init__.py b/ldapcherry/backend/__init__.py index 60d6fa9..1957589 100644 --- a/ldapcherry/backend/__init__.py +++ b/ldapcherry/backend/__init__.py @@ -43,7 +43,7 @@ class Backend: def get_param(self, param, default=None): if param in self.config: return self.config[param] - elif not default is None: + elif default is not None: return default else: raise MissingParameter('backends', self.backend_name + '.' + param)