diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-04-27 12:34:39 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-04-27 12:34:39 (GMT) |
commit | 7acb7b40ba9247e00a1d26a472b5de9adb5e49f4 (patch) | |
tree | 7b53d8fe613fc5fa61f354af8e74b05ff06b5400 /Doc/lib | |
parent | 99714cf9d0fa5d9c8c8b5a08ecdf66417bb55acd (diff) | |
download | cpython-7acb7b40ba9247e00a1d26a472b5de9adb5e49f4.zip cpython-7acb7b40ba9247e00a1d26a472b5de9adb5e49f4.tar.gz cpython-7acb7b40ba9247e00a1d26a472b5de9adb5e49f4.tar.bz2 |
[Bug #1477102] Add necessary import to example
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.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libxmlrpclib.tex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/lib/libxmlrpclib.tex b/Doc/lib/libxmlrpclib.tex index 1c36f99..8f0abfa 100644 --- a/Doc/lib/libxmlrpclib.tex +++ b/Doc/lib/libxmlrpclib.tex @@ -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") |