From 48fdaad824da690088ad164326c3151a7bb77432 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 13 Apr 2014 10:17:04 +0300 Subject: 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. --- tests/basics/namedtuple1.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/basics/namedtuple1.py') 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 -- cgit v1.2.3