[Freeipa-devel] [PATCH 007] Remove tuple unpacking from except clause

Christian Heimes cheimes at redhat.com
Mon Jul 13 12:13:48 UTC 2015


The patch replaces implicit tuple unpacking from except clauses with
explicit unpacking of the exception objects' args attribute.

Example:

>>> e = RuntimeError('num', 'messages')
>>> num, message = e
>>> num, message
('num', 'messages')
>>> e.args
('num', 'messages')
>>> num, message = e.args
>>> num, message
('num', 'messages')


Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-cheimes-0007-Remove-tuple-unpacking-from-except-clause.patch
Type: text/x-patch
Size: 6369 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20150713/f188c88c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20150713/f188c88c/attachment.sig>


More information about the Freeipa-devel mailing list