Barry Warsaw pushed to branch click-cli at mailman / Mailman Core
Commits:
c85068dc by Barry Warsaw at 2017-07-16T14:18:25-04:00
Remove some code which will never be reached.
- - - - -
2 changed files:
- src/mailman/commands/cli_import.py
- src/mailman/commands/cli_inject.py
Changes:
=====================================
src/mailman/commands/cli_import.py
=====================================
--- a/src/mailman/commands/cli_import.py
+++ b/src/mailman/commands/cli_import.py
@@ -58,9 +58,6 @@ to import and the path to the Mailman 2.1 pickle file."""))
type=click.File(mode='rb'))
@click.pass_context
def import_21(ctx, listspec, pickle_file):
- # Could be None or sequence of length 0.
- if listspec is None:
- ctx.fail(_('List name or ID is required'))
mlist = getUtility(IListManager).get(listspec)
if mlist is None:
ctx.fail(_('No such list: $listspec'))
=====================================
src/mailman/commands/cli_inject.py
=====================================
--- a/src/mailman/commands/cli_inject.py
+++ b/src/mailman/commands/cli_inject.py
@@ -68,8 +68,6 @@ def show_queues(ctx, param, value):
@click.argument('listname')
@click.pass_context
def inject(ctx, queue, message_file, keywords, listname):
- if listname is None:
- ctx.fail(_('List name is required'))
mlist = getUtility(IListManager).get(listname)
if mlist is None:
ctx.fail(_('No such list: $listname'))
View it on GitLab:
https://gitlab.com/mailman/mailman/commit/c85068dca514cc4adea0b32140113e51304472d7
---
View it on GitLab:
https://gitlab.com/mailman/mailman/commit/c85068dca514cc4adea0b32140113e51304472d7
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org