From 500b268d0ef83b4770f9883690564e458cf94247 Mon Sep 17 00:00:00 2001 From: Todd Willey Date: Thu, 13 Jan 2011 18:57:29 -0500 Subject: pep8. Someday I'll remember 2 blank lines between module methods. --- nova/wsgi.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nova/wsgi.py b/nova/wsgi.py index 817cd0478..b4cca9138 100644 --- a/nova/wsgi.py +++ b/nova/wsgi.py @@ -393,9 +393,10 @@ class Serializer(object): result.appendChild(node) return result + def paste_config_file(basename): """Find the best location in the system for a paste config file. - + Search Order ------------ @@ -424,6 +425,7 @@ def paste_config_file(basename): if os.path.exists(configfile): return configfile + def load_paste_configuration(filename, appname): """Returns a paste configuration dict, or None.""" filename = os.path.abspath(filename) @@ -434,6 +436,7 @@ def load_paste_configuration(filename, appname): pass return config + def load_paste_app(filename, appname): """Builds a wsgi app from a paste config, None if app not configured.""" filename = os.path.abspath(filename) @@ -444,8 +447,9 @@ def load_paste_app(filename, appname): pass return app + def paste_config_to_flags(config, mixins): - for k,v in mixins.iteritems(): + for k, v in mixins.iteritems(): value = config.get(k, v) converted_value = FLAGS[k].parser.Parse(value) setattr(FLAGS, k, converted_value) -- cgit