From 4709c01fe36f7571f4573d8d7f49b4f63d41a6bb Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 24 Aug 2018 11:37:13 +0200 Subject: [PATCH] Cleaning up --- lib/webhooks/common.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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 -- 2.39.5