From f2c84807600dd49458e7b342b70a4bb8f1bb2232 Mon Sep 17 00:00:00 2001 From: Todd Willey Date: Mon, 15 Nov 2010 14:43:50 -0500 Subject: pep8 --- nova/utils.py | 1 + 1 file changed, 1 insertion(+) (limited to 'nova/utils.py') diff --git a/nova/utils.py b/nova/utils.py index d7ebe5b4c..1207f52a4 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -234,6 +234,7 @@ def utf8(value): assert isinstance(value, str) return value + def fix_wsgify_docstr(wsgified_func): """A decorator to re-assign docstrings that webob.dec.wsgify clobbers.""" @functools.wraps(wsgified_func.func) -- cgit From f3744b0de85a1bc5be77f37a770144d3244bca86 Mon Sep 17 00:00:00 2001 From: Todd Willey Date: Mon, 15 Nov 2010 19:13:45 -0500 Subject: Change how wsgified doc wrapping happens to fix test. --- nova/utils.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'nova/utils.py') diff --git a/nova/utils.py b/nova/utils.py index 1207f52a4..d074cab75 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -237,7 +237,6 @@ def utf8(value): def fix_wsgify_docstr(wsgified_func): """A decorator to re-assign docstrings that webob.dec.wsgify clobbers.""" - @functools.wraps(wsgified_func.func) - def _f(*args, **kwargs): - wsgified_func(*args, **kwargs) - return _f + wsgified_func.__doc__ = wsgified_func.func.__doc__ + wsgified_func.func_name = wsgified_func.func.func_name + return wsgified_func -- cgit From ff3ec33010ce8ece87523f7cf3ef2e4a0a23006e Mon Sep 17 00:00:00 2001 From: Todd Willey Date: Mon, 15 Nov 2010 21:08:08 -0500 Subject: The docs are just going to be wrong for now. I'll file a bug upstream. --- nova/utils.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'nova/utils.py') diff --git a/nova/utils.py b/nova/utils.py index d074cab75..2970b93bb 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -233,10 +233,3 @@ def utf8(value): return value.encode("utf-8") assert isinstance(value, str) return value - - -def fix_wsgify_docstr(wsgified_func): - """A decorator to re-assign docstrings that webob.dec.wsgify clobbers.""" - wsgified_func.__doc__ = wsgified_func.func.__doc__ - wsgified_func.func_name = wsgified_func.func.func_name - return wsgified_func -- cgit