Mercurial > getan
changeset 458:2707676cfd03
check source code style.
author | Magnus Schieder <mschieder@intevation.de> |
---|---|
date | Fri, 02 Feb 2018 13:21:36 +0100 |
parents | 7fedbb73022e |
children | aebfc0140b82 |
files | getan/config.py getan/main.py |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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()
--- 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):