diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-13 10:17:04 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-13 10:24:00 +0300 |
| commit | 48fdaad824da690088ad164326c3151a7bb77432 (patch) | |
| tree | d312a3518f07ea3063c31efbf1aada5bf472f795 /tests | |
| parent | ef79a82cec061592eb8710b4b0fea7f3d92c6060 (diff) | |
py: Rename collections module to _collections.
We're not going to implement all the plethora of types in there in C.
Funnily, CPython implements defaultdict in C, and namedtuple in Python.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/namedtuple1.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/basics/namedtuple1.py b/tests/basics/namedtuple1.py index 1e194472f..98628cc54 100644 --- a/tests/basics/namedtuple1.py +++ b/tests/basics/namedtuple1.py @@ -1,4 +1,7 @@ -from collections import namedtuple +try: + from collections import namedtuple +except ImportError: + from _collections import namedtuple T = namedtuple("Tup", "foo bar") # CPython prints fully qualified name, what we don't bother to do so far |
