def get_files(): # get all files with default argument of nothing being all files args = autopep8.create_parser().parse_args() if args.files: yield from args.files else: yield from all_changed()
def help_message(): """Return help output.""" parser = autopep8.create_parser() string_io = io.StringIO() parser.print_help(string_io) # Undo home directory expansion. return string_io.getvalue().replace(os.path.expanduser('~'), '~')
def help_message(): """Return help output.""" parser = autopep8.create_parser() string_io = io.StringIO() parser.print_help(string_io) return string_io.getvalue()