Ask Solem 8 years ago
parent
commit
fbca87e24f
2 changed files with 2 additions and 3 deletions
  1. 1 2
      celery/app/utils.py
  2. 1 1
      t/integration/conftest.py

+ 1 - 2
celery/app/utils.py

@@ -169,8 +169,7 @@ class Settings(ConfigurationView):
         return filt({
             k: v for k, v in items(
                 self if with_defaults else self.without_defaults())
-            if not k.startswith('_')
-            and k not in dict_members
+            if not k.startswith('_') and k not in dict_members
         })
 
     def humanize(self, with_defaults=False, censored=True):

+ 1 - 1
t/integration/conftest.py

@@ -14,7 +14,7 @@ def flaky(fun):
         for i in reversed(range(3)):
             try:
                 return fun(*args, **kwargs)
-            except Exception as exc:
+            except Exception:
                 if not i:
                     raise
     _inner.__wrapped__ = fun