# HG changeset patch # User Magnus Schieder # Date 1517574096 -3600 # Node ID 2707676cfd030389fbc9e6b44d2077d2d36b88b9 # Parent 7fedbb73022e555829b8887e36642815e8bfe1ce check source code style. diff -r 7fedbb73022e -r 2707676cfd03 getan/config.py --- a/getan/config.py Fri Feb 02 12:37:11 2018 +0100 +++ b/getan/config.py Fri Feb 02 13:21:36 2018 +0100 @@ -17,6 +17,7 @@ logger = None + def initialize(level, filename): setup_logging(level, filename) setup_locale() diff -r 7fedbb73022e -r 2707676cfd03 getan/main.py --- a/getan/main.py Fri Feb 02 12:37:11 2018 +0100 +++ b/getan/main.py Fri Feb 02 13:21:36 2018 +0100 @@ -41,16 +41,15 @@ default=logging.INFO, const=logging.DEBUG, help='set verbosity to debug') parser.add_argument('-l', '--logfile', dest='logfile', metavar='FILE', - help='write log information to FILE [default: %(default)s]', - default='getan.log') - + help='''write log information to FILE [default: + %(default)s]''', default='getan.log') args = parser.parse_args() config.initialize(args.loglevel, args.logfile) global logger - if args.filename != DEFAULT_DATABASE : + if args.filename != DEFAULT_DATABASE: database = args.filename else: if os.path.isfile(DEFAULT_DATABASE):