quote function cat raise an error (PY-3265).

This commit is contained in:
Dmitry Trofimov
2013-10-07 01:36:17 +02:00
parent ac6fe8b90c
commit ab671c0b7d
+5 -1
View File
@@ -171,7 +171,11 @@ def varToXML(val, name, doTrim=True):
except:
value = 'Unable to get repr for %s' % v.__class__
xml = '<var name="%s" type="%s"' % (makeValidXmlValue(quote(name, '/>_= ')), makeValidXmlValue(typeName))
try:
name = quote(name, '/>_= ') #TODO: Fix PY-5834 without using quote
except:
pass
xml = '<var name="%s" type="%s"' % (makeValidXmlValue(name), makeValidXmlValue(typeName))
if value:
#cannot be too big... communication may not handle it.