[issue29958] Use add_mutually_exclusive_group(required=True) in zipfile and tarfile CLI

2017-04-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29958] Use add_mutually_exclusive_group(required=True) in zipfile and tarfile CLI

2017-04-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 150cd1916a59e750ce88c65325de9ef0c42c6cb5 by Serhiy Storchaka in 
branch 'master':
bpo-29958: Minor improvements to zipfile and tarfile CLI. (#944)
https://github.com/python/cpython/commit/150cd1916a59e750ce88c65325de9ef0c42c6cb5


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29958] Use add_mutually_exclusive_group(required=True) in zipfile and tarfile CLI

2017-04-01 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1126

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29958] Use add_mutually_exclusive_group(required=True) in zipfile and tarfile CLI

2017-04-01 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

In the comment to the patch on issue28115 SilentGhost suggested to pass 
required=True to add_mutually_exclusive_group(). This makes the last "else" not 
needed.

Proposed patch implements this idea for zipfile and tarfile. It also improves 
error handling when pass empty tar archive name, and adds a hyphen in 
"command-line".

--
assignee: serhiy.storchaka
components: Demos and Tools
messages: 290966
nosy: SilentGhost, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Use add_mutually_exclusive_group(required=True) in zipfile and tarfile 
CLI
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com