diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-04-07 15:52:42 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-04-07 15:52:42 +0300 |
commit | ec242842d41fde4bb9e9e18086df670c600b2397 (patch) | |
tree | 549bf03486428e03820ea5bfcf05d9ad11b3a560 | |
parent | edfdde0a1e3a3bf8335a9826feeb484aca69b2c6 (diff) | |
download | distix-ec242842d41fde4bb9e9e18086df670c600b2397.tar.gz |
refactor: Move variable to a better place
-rw-r--r-- | distixlib/plugins/import_mail_plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/distixlib/plugins/import_mail_plugin.py b/distixlib/plugins/import_mail_plugin.py index a1e5443..6a44223 100644 --- a/distixlib/plugins/import_mail_plugin.py +++ b/distixlib/plugins/import_mail_plugin.py @@ -88,12 +88,12 @@ class ImportMailPlugin(cliapp.Plugin): context.repo.require_clean_working_tree() context.all_ticket_ids = context.store.get_ticket_ids() - filenames = [] if self.app.settings['quiet']: progress = _QuietProgressReporter() else: progress = _MboxProgressReporter(len(folder)) + filenames = [] with contextlib.closing(folder), progress: for msg in folder: progress.next_msg() |