From: Brett Cannon Date: Mon, 12 May 2008 00:56:28 +0000 (+0000) Subject: The __all__ value for 'collections' was missing UserList and UserString. X-Git-Tag: v3.0b1~377 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23a4a7b5a129c18e20e11e48983c2d29ea7728aa;p=python The __all__ value for 'collections' was missing UserList and UserString. --- diff --git a/Lib/collections.py b/Lib/collections.py index dafc5e5746..f74614534b 100644 --- a/Lib/collections.py +++ b/Lib/collections.py @@ -1,4 +1,5 @@ -__all__ = ['deque', 'defaultdict', 'namedtuple', 'UserDict'] +__all__ = ['deque', 'defaultdict', 'namedtuple', 'UserDict', 'UserList', + 'UserString'] # For bootstrapping reasons, the collection ABCs are defined in _abcoll.py. # They should however be considered an integral part of collections.py. from _abcoll import * diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index 3ba23dea2b..57d89e025c 100644 --- a/Lib/test/test___all__.py +++ b/Lib/test/test___all__.py @@ -44,6 +44,7 @@ class AllTest(unittest.TestCase): self.check_all("bdb") self.check_all("binhex") self.check_all("calendar") + self.check_all("collections") self.check_all("cgi") self.check_all("cmd") self.check_all("code") diff --git a/Misc/NEWS b/Misc/NEWS index f61b3dc7b3..50a24e8cdc 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -21,6 +21,8 @@ Extension Modules Library ------- +- Fix the __all__ setting on 'collections' to include UserList and UserString. + - The sre module has been removed. - The Queue module has been renamed to queue.