git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aabd40c
)
revert last change
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 11 Aug 2009 16:56:27 +0000
(16:56 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 11 Aug 2009 16:56:27 +0000
(16:56 +0000)
sfa/plc/api.py
patch
|
blob
|
history
diff --git
a/sfa/plc/api.py
b/sfa/plc/api.py
index
a80697b
..
4d4055b
100644
(file)
--- a/
sfa/plc/api.py
+++ b/
sfa/plc/api.py
@@
-43,7
+43,7
@@
def xmlrpclib_escape(s, replace = string.replace):
# Replace invalid 7-bit control characters with '?'
return s.translate(xml_escape_table)
# Replace invalid 7-bit control characters with '?'
return s.translate(xml_escape_table)
-def
sfa_
xmlrpclib_dump(self, value, write):
+def xmlrpclib_dump(self, value, write):
"""
xmlrpclib cannot marshal instances of subclasses of built-in
types. This function overrides xmlrpclib.Marshaller.__dump so that
"""
xmlrpclib cannot marshal instances of subclasses of built-in
types. This function overrides xmlrpclib.Marshaller.__dump so that
@@
-74,7
+74,7
@@
def sfa_xmlrpclib_dump(self, value, write):
f(*args)
# You can't hide from me!
f(*args)
# You can't hide from me!
-xmlrpclib.Marshaller._Marshaller__dump =
sfa_
xmlrpclib_dump
+xmlrpclib.Marshaller._Marshaller__dump = xmlrpclib_dump
# SOAP support is optional
try:
# SOAP support is optional
try: