]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Cleaning up
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 24 Aug 2018 09:37:13 +0000 (11:37 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 24 Aug 2018 09:37:13 +0000 (11:37 +0200)
lib/webhooks/common.py

index 369199b9b9501fb1dc2f5332283a187cd9a09b0a..36042479618676c331d1eef2298d8b16167c21af 100644 (file)
@@ -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