Commit a040b4e1 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

astakos: pep8 fixes

parent 852a3bdc
......@@ -54,9 +54,11 @@ def urlencode(params):
params[uenc(k)] = uenc(params.pop(k))
return urllib.urlencode(params)
def normalize(url):
return urltools.normalize(uenc(url))
def handles_oa2_requests(func):
def wrapper(self, *args, **kwargs):
if not self._errors_to_http:
......@@ -531,8 +533,8 @@ class SimpleBackend(object):
client_credentials = None
try: # check authorization header
client_credentials = self._get_authorization(params, meta,
client_credentials = self._get_authorization(
params, meta, authorization_required=False)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment