From: Frank Brehm Date: Fri, 24 Aug 2018 09:37:13 +0000 (+0200) Subject: Cleaning up X-Git-Tag: 0.9.8^2~6 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=4709c01fe36f7571f4573d8d7f49b4f63d41a6bb;p=pixelpark%2Fpuppetmaster-webhooks.git Cleaning up --- diff --git a/lib/webhooks/common.py b/lib/webhooks/common.py index 369199b..3604247 100644 --- a/lib/webhooks/common.py +++ b/lib/webhooks/common.py @@ -22,7 +22,7 @@ import six # Own modules -__version__ = '0.3.2' +__version__ = '0.3.3' LOG = logging.getLogger(__name__) RE_YES = re.compile(r'^\s*(?:y(?:es)?|true)\s*$', re.IGNORECASE) @@ -194,12 +194,8 @@ def to_bool(value): # ============================================================================= def is_sequence(arg): - if six.PY3: - if not isinstance(arg, collections.Sequence): - return False - else: - if not isinstance(arg, collections.Sequence): - return False + if not isinstance(arg, collections.Sequence): + return False if hasattr(arg, "strip"): return False