From f0a92430e89678b2a49ffb892cba9d03183df17f Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Sun, 26 May 2013 11:24:17 +0200 Subject: [PATCH] cmdln.py: fix bad indentation Signed-off-by: Danny Al-Gaaf --- osc/cmdln.py | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/osc/cmdln.py b/osc/cmdln.py index f3dc7266..f8ad233c 100644 --- a/osc/cmdln.py +++ b/osc/cmdln.py @@ -50,31 +50,31 @@ from datetime import date # this is python 2.x style def introspect_handler_2(handler): - # Extract the introspection bits we need. - func = handler.im_func - if func.func_defaults: - func_defaults = func.func_defaults - else: - func_defaults = [] - return \ - func_defaults, \ - func.func_code.co_argcount, \ - func.func_code.co_varnames, \ - func.func_code.co_flags, \ - func + # Extract the introspection bits we need. + func = handler.im_func + if func.func_defaults: + func_defaults = func.func_defaults + else: + func_defaults = [] + return \ + func_defaults, \ + func.func_code.co_argcount, \ + func.func_code.co_varnames, \ + func.func_code.co_flags, \ + func def introspect_handler_3(handler): - defaults = handler.__defaults__ - if not defaults: - defaults = [] - else: - defaults = list(handler.__defaults__) - return \ - defaults, \ - handler.__code__.co_argcount, \ - handler.__code__.co_varnames, \ - handler.__code__.co_flags, \ - handler.__func__ + defaults = handler.__defaults__ + if not defaults: + defaults = [] + else: + defaults = list(handler.__defaults__) + return \ + defaults, \ + handler.__code__.co_argcount, \ + handler.__code__.co_varnames, \ + handler.__code__.co_flags, \ + handler.__func__ if sys.version_info[0] == 2: introspect_handler = introspect_handler_2