]> granicus.if.org Git - python/commitdiff
[Bug #1477102] Add necessary import to example
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 27 Apr 2006 12:34:39 +0000 (12:34 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 27 Apr 2006 12:34:39 +0000 (12:34 +0000)
This may be a useful style question for the docs -- should examples show
the necessary imports, or should it be assumed that the reader will
figure it out?  In the What's New, I'm not consistent but usually opt
for omitting the imports.

Doc/lib/libxmlrpclib.tex

index 1c36f994b7c8ab788c5768943e99a9502b835ca9..8f0abfa1b2376980cadc7f2e910c73176dc90619 100644 (file)
@@ -340,6 +340,7 @@ objects, they are converted to \class{DateTime} objects internally, so only
 
 \begin{verbatim}
 # simple test program (from the XML-RPC specification)
+from xmlrpclib import ServerProxy
 
 # server = ServerProxy("http://localhost:8000") # local server
 server = ServerProxy("http://betty.userland.com")