Support Python 3 using six
This commit is contained in:
parent
d653a3a3f7
commit
eedb4c4b73
67 changed files with 455 additions and 255 deletions
|
|
@ -31,7 +31,7 @@ class DomainDispatcherApplication(object):
|
|||
if self.service:
|
||||
return self.service
|
||||
|
||||
for backend_name, backend in BACKENDS.iteritems():
|
||||
for backend_name, backend in BACKENDS.items():
|
||||
for url_base in backend.url_bases:
|
||||
if re.match(url_base, 'http://%s' % host):
|
||||
return backend_name
|
||||
|
|
@ -73,7 +73,7 @@ def create_backend_app(service):
|
|||
backend_app.url_map.converters['regex'] = RegexConverter
|
||||
|
||||
backend = BACKENDS[service]
|
||||
for url_path, handler in backend.flask_paths.iteritems():
|
||||
for url_path, handler in backend.flask_paths.items():
|
||||
backend_app.route(url_path, methods=HTTP_METHODS)(convert_flask_to_httpretty_response(handler))
|
||||
|
||||
return backend_app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue