From ef29ccfb335d992bdde9ad9e8a62220dca679c5a Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Wed, 4 Jul 2012 13:58:19 +0200 Subject: [PATCH] Add newline at the end of newly created config file --- src/fix_imap_internaldate.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fix_imap_internaldate.py b/src/fix_imap_internaldate.py index 9f85e44..7e97701 100644 --- a/src/fix_imap_internaldate.py +++ b/src/fix_imap_internaldate.py @@ -91,8 +91,8 @@ def load_configuration(): config.set('basic_settings', 'fallback_to_date_header', False) with open(CONFIG_FILENAME, 'w') as configfile: config.write(configfile) - configfile.write("# 0 NOTSET, 10 DEBUG, 20 INFO, 30 WARNING, 40 ERROR, 50 CRITICAL") - + configfile.write("# 0 NOTSET, 10 DEBUG, 20 INFO, 30 WARNING, 40 ERROR, 50 CRITICAL\n") + return config def prepare_logger(config): -- 1.7.1