Skip to content

Commit efa720a

Browse files
committed
Remove prints
1 parent 4026359 commit efa720a

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

xmlrpcproto/common.py

-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ def xml2struct(element: _Element) -> XmlRpcStructType:
129129

130130
def xml2array(element: _Element) -> XmlRpcArrayType:
131131
values = cast(List[_Element], element.xpath("./data/value"))
132-
print(element, values)
133132
return [xml2py(i) for i in values]
134133

135134

xmlrpcproto/server.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@ def parse_xml(xml_string: bytes) -> _Element:
2323

2424

2525
def build_xml(tree: _Element) -> Union[str, bytes]:
26-
s = b'<?xml version="1.0"?>\n' + tostring(tree, encoding="ASCII")
27-
print(s)
28-
return s
26+
return b'<?xml version="1.0"?>\n' + tostring(tree, encoding="ASCII")
2927

3028

3129
def parse_reqeuest(
3230
body: bytes, headers: Mapping[str, str]
3331
) -> Tuple[str, List[XmlRpcTypes]]:
34-
print(body)
3532
if b"xml" not in headers.get(b"content-type", b""):
3633
raise ValueError()
3734

0 commit comments

Comments
 (0)