akhilvij/systemd-to-sysvinit-converter — pull request #4 by thuck (2012-08-20 22:09:10+00:00)
Title: Clean up of the program. Changed many print statements, change from

tabs to 4 spaces as described in pep8, including the structure
__name__ == '__main__', better block separation.

Changes per function:
parser_init: better code block separation
check_for_file: better code block separation
clear_semicolon_comment: remove several replaces by a re.sub
-- the same functionality but with less line, the inclusion of the
-- re module were necessary
check_for_specifiers: code block organization
check_for_service: change the logic without change the result,
-- less code and probably more readable
add_description: remove + to concatenate strings use '%' % () instead
add_runlevels: left only one return statement at the end of the function
add_required_service: code block organization, also changed the structure
-- var = var + 'something' to var += 'something'
add_should_service: code block organization
check_env_file: changed the concatenation method
exec_path: only one return statement
clear_dash_prefix: change the method to remove the dash
replace_specifiers: code block organization
bash_check_for_success: reduce the amount of print statements
timeout: reduce the amount of print statements
build_start: reduce the amount of print statements
build_stop: code block organization
build_reload: code block organization
build_force_reload: code block organization
build_default_params: code block organization, also changed the structure
-- var = var + 'something' to var += 'something'
build_call_arguments: reduce the amount of print statements