diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index f409536b6fb..b6ab342555b 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -95,8 +95,8 @@ The class can be used to simulate nested scopes and is useful in templating. Example of simulating Python's internal lookup chain:: - import __builtin__ - pylookup = ChainMap(locals(), globals(), vars(__builtin__)) + import builtins + pylookup = ChainMap(locals(), globals(), vars(builtins)) Example of letting user specified values take precedence over environment variables which in turn take precedence over default values::