@@ -474,7 +474,7 @@ class Marshaller:
474474 # by the way, if you don't understand what's going on in here,
475475 # that's perfectly ok.
476476
477- def __init__ (self , encoding = None , allow_none = 0 ):
477+ def __init__ (self , encoding = None , allow_none = False ):
478478 self .memo = {}
479479 self .data = None
480480 self .encoding = encoding
@@ -647,7 +647,7 @@ class Unmarshaller:
647647 # and again, if you don't understand what's going on in here,
648648 # that's perfectly ok.
649649
650- def __init__ (self , use_datetime = 0 ):
650+ def __init__ (self , use_datetime = False ):
651651 self ._type = None
652652 self ._stack = []
653653 self ._marks = []
@@ -880,7 +880,7 @@ def __call__(self):
880880#
881881# return A (parser, unmarshaller) tuple.
882882
883- def getparser (use_datetime = 0 ):
883+ def getparser (use_datetime = False ):
884884 """getparser() -> parser, unmarshaller
885885
886886 Create an instance of the fastest available parser, and attach it
@@ -917,7 +917,7 @@ def getparser(use_datetime=0):
917917# @return A string containing marshalled data.
918918
919919def dumps (params , methodname = None , methodresponse = None , encoding = None ,
920- allow_none = 0 ):
920+ allow_none = False ):
921921 """data [,options] -> marshalled data
922922
923923 Convert an argument tuple or a Fault instance to an XML-RPC
@@ -993,7 +993,7 @@ def dumps(params, methodname=None, methodresponse=None, encoding=None,
993993# (None if not present).
994994# @see Fault
995995
996- def loads (data , use_datetime = 0 ):
996+ def loads (data , use_datetime = False ):
997997 """data -> unmarshalled data, method name
998998
999999 Convert an XML-RPC packet to unmarshalled data plus a method
@@ -1114,7 +1114,7 @@ class Transport:
11141114 # that they can decode such a request
11151115 encode_threshold = None #None = don't encode
11161116
1117- def __init__ (self , use_datetime = 0 ):
1117+ def __init__ (self , use_datetime = False ):
11181118 self ._use_datetime = use_datetime
11191119 self ._connection = (None , None )
11201120 self ._extra_headers = []
@@ -1129,7 +1129,7 @@ def __init__(self, use_datetime=0):
11291129 # @param verbose Debugging flag.
11301130 # @return Parsed response.
11311131
1132- def request (self , host , handler , request_body , verbose = 0 ):
1132+ def request (self , host , handler , request_body , verbose = False ):
11331133 #retry request once if cached connection has gone cold
11341134 for i in (0 , 1 ):
11351135 try :
@@ -1141,7 +1141,7 @@ def request(self, host, handler, request_body, verbose=0):
11411141 if i :
11421142 raise
11431143
1144- def single_request (self , host , handler , request_body , verbose = 0 ):
1144+ def single_request (self , host , handler , request_body , verbose = False ):
11451145 # issue XML-RPC request
11461146 try :
11471147 http_conn = self .send_request (host , handler , request_body , verbose )
@@ -1379,8 +1379,8 @@ class ServerProxy:
13791379 the given encoding.
13801380 """
13811381
1382- def __init__ (self , uri , transport = None , encoding = None , verbose = 0 ,
1383- allow_none = 0 , use_datetime = 0 ):
1382+ def __init__ (self , uri , transport = None , encoding = None , verbose = False ,
1383+ allow_none = False , use_datetime = False ):
13841384 # establish a "logical" server connection
13851385
13861386 # get the url
0 commit comments