From 5213f343c07c0d0c47c332ab0427c223c8a8edac Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Fri, 1 Sep 2017 14:11:58 +0200 Subject: [PATCH] pep8 --- cdist/configuration.py | 2 +- cdist/test/configuration/__init__.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cdist/configuration.py b/cdist/configuration.py index b1154ae8..fe7fdf1b 100644 --- a/cdist/configuration.py +++ b/cdist/configuration.py @@ -32,7 +32,7 @@ class Singleton(type): instance = None def __call__(cls, *args, **kwargs): - if 'singleton' in kwargs and kwargs['singleton'] == False: + if 'singleton' in kwargs and not kwargs['singleton']: return super(Singleton, cls).__call__(*args, **kwargs) else: if not cls.instance: diff --git a/cdist/test/configuration/__init__.py b/cdist/test/configuration/__init__.py index a91e8e8b..2f83d63d 100644 --- a/cdist/test/configuration/__init__.py +++ b/cdist/test/configuration/__init__.py @@ -63,9 +63,10 @@ class ConfigurationOptionsTestCase(test.CdistTestCase): ), ) for currval, newval, update_appends, expected in test_cases: - self.assertEqual(option.update_value(currval, newval, - update_appends=update_appends), - expected) + self.assertEqual( + option.update_value(currval, newval, + update_appends=update_appends), + expected) def test_StringOption(self): option = cc.StringOption('test')