Skip to content

Commit 208d77e

Browse files
Colin Barrcontificate
Colin Barr
authored andcommitted
Update Wire Protocol documentation to use Python 3
Updates the wire protocol documentation demonstration to use xmlrpc.client, as this was factored out of xmlrpclib in Python 3 - you can no longer import xmlrpclib in Python 3, you must use xmlrpc.(client|server). Signed-off-by: Colin Barr <[email protected]>
1 parent 677558a commit 208d77e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xen-api/wire-protocol.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,11 @@ First, initialise python and import the library `xmlrpclib`:
227227

228228
$ python
229229
...
230-
>>> import xmlrpclib
230+
>>> import xmlrpc.client
231231

232232
Create a python object referencing the remote server:
233233

234-
>>> xen = xmlrpclib.Server("https://localhost:443")
234+
>>> xen = xmlrpc.client.Server("https://localhost:443")
235235

236236
Acquire a session reference by logging in with a username and password
237237
(error-handling ommitted for brevity; the session reference is returned

0 commit comments

Comments
 (0)