aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2015-11-13 08:28:32 -0600
committerIan Cordasco <graffatcolmingov@gmail.com>2015-11-13 08:28:32 -0600
commit925ffa28d44f701c3831340c46151078656eef2c (patch)
treee1c2b642d7719c92959c88c8d1e594ab57fd639e
parent16d9beae04c55e3edffd76d17599a0b2a0be93dd (diff)
downloadplatform_external_python_uritemplates-925ffa28d44f701c3831340c46151078656eef2c.tar.gz
platform_external_python_uritemplates-925ffa28d44f701c3831340c46151078656eef2c.tar.bz2
platform_external_python_uritemplates-925ffa28d44f701c3831340c46151078656eef2c.zip
Fix one minor style nit
I always prefer parens to backslashes
-rw-r--r--uritemplate/variable.py5
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