Remove white space between print ()
There was a white space between print and () Change-Id: I6793e52c441728e991fe61afb73227e16368d758
This commit is contained in:
parent
7e96104e7b
commit
9f84e4c7c5
@ -57,7 +57,7 @@ def dumpxml(key, obj, datatype=None):
|
|||||||
|
|
||||||
|
|
||||||
def loadxml(el, datatype):
|
def loadxml(el, datatype):
|
||||||
print (el, datatype, len(el))
|
print(el, datatype, len(el))
|
||||||
if el.get('nil') == 'true':
|
if el.get('nil') == 'true':
|
||||||
return None
|
return None
|
||||||
if isinstance(datatype, list):
|
if isinstance(datatype, list):
|
||||||
@ -90,10 +90,10 @@ def loadxml(el, datatype):
|
|||||||
for attr in datatype._wsme_attributes:
|
for attr in datatype._wsme_attributes:
|
||||||
name = attr.name
|
name = attr.name
|
||||||
child = el.find(name)
|
child = el.find(name)
|
||||||
print (name, attr, child)
|
print(name, attr, child)
|
||||||
if child is not None:
|
if child is not None:
|
||||||
d[name] = loadxml(child, attr.datatype)
|
d[name] = loadxml(child, attr.datatype)
|
||||||
print (d)
|
print(d)
|
||||||
return d
|
return d
|
||||||
else:
|
else:
|
||||||
if datatype == wsme.types.binary:
|
if datatype == wsme.types.binary:
|
||||||
@ -137,7 +137,7 @@ class TestRestXML(wsme.tests.protocol.RestOnlyProtocolTestCase):
|
|||||||
content,
|
content,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
expect_errors=True)
|
expect_errors=True)
|
||||||
print ("Received:", res.body)
|
print("Received:", res.body)
|
||||||
|
|
||||||
if _no_result_decode:
|
if _no_result_decode:
|
||||||
return res
|
return res
|
||||||
@ -167,7 +167,7 @@ class TestRestXML(wsme.tests.protocol.RestOnlyProtocolTestCase):
|
|||||||
|
|
||||||
language, sample = wsme.rest.xml.encode_sample_value(
|
language, sample = wsme.rest.xml.encode_sample_value(
|
||||||
MyType, value, True)
|
MyType, value, True)
|
||||||
print (language, sample)
|
print(language, sample)
|
||||||
|
|
||||||
assert language == 'xml'
|
assert language == 'xml'
|
||||||
assert sample == b("""<value>
|
assert sample == b("""<value>
|
||||||
|
@ -224,7 +224,7 @@ class TestExtDirectProtocol(wsme.tests.protocol.ProtocolTestCase):
|
|||||||
body,
|
body,
|
||||||
headers={'Content-Type': 'application/x-www-form-urlencoded'}
|
headers={'Content-Type': 'application/x-www-form-urlencoded'}
|
||||||
)
|
)
|
||||||
print (r)
|
print(r)
|
||||||
|
|
||||||
assert json.loads(r.text) == {
|
assert json.loads(r.text) == {
|
||||||
"tid": "1",
|
"tid": "1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user