Skip to content

Commit

Permalink
Fix line wrap style
Browse files Browse the repository at this point in the history
  • Loading branch information
frafra committed Jan 9, 2019
1 parent 3e5f585 commit 2b9ad65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckan/authz.py
Expand Up @@ -102,8 +102,8 @@ def _build(self):
fetched_auth_functions[name] = auth_function

for name, func_list in chained_auth_functions.iteritems():
if name not in fetched_auth_functions and\
name not in self._functions:
if (name not in fetched_auth_functions and
name not in self._functions):
raise Exception('The auth %r is not found for chained auth' % (
name))
# create the chain of functions in the correct order
Expand All @@ -113,8 +113,8 @@ def _build(self):
else:
# fallback to chaining off the builtin auth function
prev_func = self._functions[name]
fetched_auth_functions[name] =\
functools.partial(func, prev_func)
fetched_auth_functions[name] = (
functools.partial(func, prev_func))

# Use the updated ones in preference to the originals.
self._functions.update(fetched_auth_functions)
Expand Down

0 comments on commit 2b9ad65

Please sign in to comment.