Adding upstream version 2.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
18c908e4f3
commit
c0d06915b7
199 changed files with 14930 additions and 0 deletions
11
testing/auto_namedtuple.py
Normal file
11
testing/auto_namedtuple.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import collections
|
||||
|
||||
|
||||
def auto_namedtuple(classname='auto_namedtuple', **kwargs):
|
||||
"""Returns an automatic namedtuple object.
|
||||
|
||||
Args:
|
||||
classname - The class name for the returned object.
|
||||
**kwargs - Properties to give the returned object.
|
||||
"""
|
||||
return (collections.namedtuple(classname, kwargs.keys())(**kwargs))
|
Loading…
Add table
Add a link
Reference in a new issue