commit | fbf66bd61705624f8c5b4b68061eeb9e5296a871 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Jul 29 15:55:50 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Tue Jul 29 15:55:50 2008 +0000 |
tree | dc8f347a70433628412e8311d083828bc7854145 | |
parent | f63e343c39902e05a947320bb843a95e5b3d4535 [diff] |
a much cleaner fix from Antoine
diff --git a/Lib/doctest.py b/Lib/doctest.py index e2b595e..e8babd2 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py
@@ -1360,10 +1360,8 @@ linecache.getlines = self.save_linecache_getlines if clear_globs: test.globs.clear() - if __name__ == "__main__": - __builtins__._ = None - else: - __builtins__['_'] = None + import builtins + builtins._ = None #///////////////////////////////////////////////////////////////// # Summarization