summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-02-20 03:31:23 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-02-20 03:31:23 (GMT)
commita7b55a33f877d1c210a5372a73ad85983ab8621c (patch)
treeccff5a2b2506f9b290e8c9f83be33bb3dfc16655 /Doc/whatsnew
parent5149742e8b3c8221d4cb53dcfc9a12ae3fec9238 (diff)
downloadcpython-a7b55a33f877d1c210a5372a73ad85983ab8621c.zip
cpython-a7b55a33f877d1c210a5372a73ad85983ab8621c.tar.gz
cpython-a7b55a33f877d1c210a5372a73ad85983ab8621c.tar.bz2
revert r69777 since all the experts agree that extra import lines distract from the code
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/2.6.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst
index 17ee766..f04f194 100644
--- a/Doc/whatsnew/2.6.rst
+++ b/Doc/whatsnew/2.6.rst
@@ -473,8 +473,7 @@ statement both starts a database transaction and acquires a thread lock::
Finally, the :func:`closing(object)` function returns *object* so that it can be
bound to a variable, and calls ``object.close`` at the end of the block. ::
- import sys
- import urllib
+ import urllib, sys
from contextlib import closing
with closing(urllib.urlopen('http://www.yahoo.com')) as f: