mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36:13 +01:00
cmdln.py: fix bad indentation
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
cdd73ba983
commit
f0a92430e8
46
osc/cmdln.py
46
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
|
||||
|
Loading…
Reference in New Issue
Block a user