diff options
author | stijn <stinos@zoho.com> | 2014-12-20 16:37:40 +0100 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-01-01 14:53:23 +0200 |
commit | 12340147b0ace7c1feeaf36b618c92652bdb849f (patch) | |
tree | 7bb43cac6b4c46f27607e5ac7a1dabfaf5db31c1 /tests/basics/class_store_class.py | |
parent | 8422cac0888ed9694ec84f3bac8d6edc3d39e911 (diff) | |
download | micropython-12340147b0ace7c1feeaf36b618c92652bdb849f.tar.gz micropython-12340147b0ace7c1feeaf36b618c92652bdb849f.zip |
py: Use sequence of strings for named tuple initialization
- remove single string initialization style
- take list of strings instead
- store list in the type for fast lookup
Diffstat (limited to 'tests/basics/class_store_class.py')
-rw-r--r-- | tests/basics/class_store_class.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basics/class_store_class.py b/tests/basics/class_store_class.py index 60f65220d9..09a8e8bc4d 100644 --- a/tests/basics/class_store_class.py +++ b/tests/basics/class_store_class.py @@ -7,7 +7,7 @@ try: except ImportError: from _collections import namedtuple -_DefragResultBase = namedtuple('DefragResult', 'foo bar') +_DefragResultBase = namedtuple('DefragResult', [ 'foo', 'bar' ]) class _ResultMixinStr(object): def encode(self): |