From 77a81cbdb0babbb2800dc22c657bfab02a2bc362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Tue, 9 Feb 2016 22:56:48 +0100 Subject: [PATCH] Make it work with Python 3.5 --- patacrep/songbook/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patacrep/songbook/__main__.py b/patacrep/songbook/__main__.py index 33cabee7..7233dd63 100644 --- a/patacrep/songbook/__main__.py +++ b/patacrep/songbook/__main__.py @@ -127,7 +127,7 @@ def argument_parser(args): return options -def main(args): +def main(): """Main function:""" # set script locale to match user's try: @@ -136,7 +136,7 @@ def main(args): # Locale is not installed on user's system, or wrongly configured. LOGGER.error("Locale error: {}\n".format(str(error))) - options = argument_parser(args[1:]) + options = argument_parser(sys.argv[1:]) try: songbook = open_songbook(options.book[-1]) @@ -166,4 +166,4 @@ def main(args): sys.exit(0) if __name__ == '__main__': - main(sys.argv) + main()