-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update wire-protocol.md to have working Python3 code examples (#6058)
The document was updated in f785993 to use Python 3, however the examples were left unchanged. In Python 3, `xmlrpclib` does not exist, it has been replaced by the `xmlrpc` module (specifically in this case `xmlrpclib.Server` has been replaced by `xmlrpc.client.ServerProxy`). Additionally, the `python-jsonrpc` package has not been ported to Python 3, and as such is unavailable. There is no direct replacement, however a combination of the `jsonrpcclient` package and the `requests` packages provide a reasonable solution. This commit updates the examples appropriately so they function in Python 3.
- Loading branch information
Showing
1 changed file
with
44 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters