diff options
| -rw-r--r-- | uritemplate/variable.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/uritemplate/variable.py b/uritemplate/variable.py index 2f6dbd9..a47bf0a 100644 --- a/uritemplate/variable.py +++ b/uritemplate/variable.py @@ -346,8 +346,9 @@ class URIVariable(object): def is_list_of_tuples(value): - if not value or not isinstance(value, (list, tuple)) or \ - not all(isinstance(t, tuple) and len(t) == 2 for t in value): + if (not value or + not isinstance(value, (list, tuple)) or + not all(isinstance(t, tuple) and len(t) == 2 for t in value)): return False, None return True, value |
