diff doc/xmlrpc.txt @ 5332:d0689aaa83db

Applied patch 0038 from issue2550960 to upgrade code examples in documentation to be compatible with both python 2 and 3. Patch supplied by Joseph Myers.
author John Rouillard <rouilj@ieee.org>
date Tue, 12 Jun 2018 20:27:04 -0400
parents 6efa6d44c27a
children 94a7669677ae
line wrap: on
line diff
--- a/doc/xmlrpc.txt	Thu Jun 07 12:39:31 2018 +0200
+++ b/doc/xmlrpc.txt	Tue Jun 12 20:27:04 2018 -0400
@@ -169,13 +169,13 @@
 	verbose=False,
 	allow_none=True)
 
-    print roundup_server.schema()
-    print roundup_server.display('user2', 'username')
-    print roundup_server.display('issue1', 'status')
-    print roundup_server.filter('user',['1','2','3'],{'username':'demo'})
+    print(roundup_server.schema())
+    print(roundup_server.display('user2', 'username'))
+    print(roundup_server.display('issue1', 'status'))
+    print(roundup_server.filter('user',['1','2','3'],{'username':'demo'}))
 
    # this will fail with a fault
    try:
-      print roundup_server.filter('usr',['0','2','3'],{'username':'demo'})
+      print(roundup_server.filter('usr',['0','2','3'],{'username':'demo'}))
    except Exception as msg:
-      print msg
+      print(msg)

Roundup Issue Tracker: http://roundup-tracker.org/