From 7ab5cd35acafcb8b20a118cc1884e3e90ff0db42 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Sat, 21 Dec 2013 22:49:06 +0100 Subject: [PATCH] missing parens -> matched what we did not want to match Signed-off-by: Steven Armstrong --- cdist/util/fsproperty.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdist/util/fsproperty.py b/cdist/util/fsproperty.py index 797c929b..49d4a32d 100644 --- a/cdist/util/fsproperty.py +++ b/cdist/util/fsproperty.py @@ -135,8 +135,8 @@ class DirectoryDict(collections.MutableMapping): try: with open(os.path.join(self.path, key), "w") as fd: if (not hasattr(value, 'strip') and - hasattr(value, '__getitem__') or - hasattr(value, '__iter__')): + (hasattr(value, '__getitem__') or + hasattr(value, '__iter__'))): # if it looks like a sequence and quacks like a sequence, # it is a sequence for v in value: