From 8141a1b90cfdf9cfffce349f8f2e1e1bf3e4e697 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 11 Apr 2009 22:31:46 -0500 Subject: [PATCH 1/1] Removing useless doctest since its dependent on non-existent stuff --- src/toolbox.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/toolbox.py b/src/toolbox.py index c0e315a..e6dfcbf 100644 --- a/src/toolbox.py +++ b/src/toolbox.py @@ -13,18 +13,6 @@ def open_anything(source, alternative=None): and deal with it in a uniform manner. Returned object is guaranteed to have all the basic stdio read methods (read, readline, readlines). Just .close() the object when you're done with it. - - Examples: - >>> from xml.dom import minidom - >>> sock = openAnything("http://localhost/kant.xml") - >>> doc = minidom.parse(sock) - >>> sock.close() - >>> sock = openAnything("c:\\inetpub\\wwwroot\\kant.xml") - >>> doc = minidom.parse(sock) - >>> sock.close() - >>> sock = openAnything("andor") - >>> doc = minidom.parse(sock) - >>> sock.close() """ if hasattr(source, "read"): return source -- 1.7.9.5