Fix ValueError for Python 2.6

This commit is contained in:
Jeffrey Gelens 2015-05-29 11:43:24 +02:00
parent e722b67f36
commit 450d14b4eb

View File

@ -75,7 +75,7 @@ def create_backend_app(service):
backend = BACKENDS[service]
for url_path, handler in backend.flask_paths.items():
if handler.__name__ == 'dispatch':
endpoint = '{}.dispatch'.format(handler.__self__.__name__)
endpoint = '{0}.dispatch'.format(handler.__self__.__name__)
else:
endpoint = None