extracttests.py: close input file
This commit is contained in:
parent
54eeb76a71
commit
370018d313
|
@ -59,6 +59,9 @@ class Extract:
|
|||
self.nodes.append(node)
|
||||
code = ''
|
||||
|
||||
# close test file
|
||||
fin.close()
|
||||
|
||||
def strtoxml(s):
|
||||
"""Convert string to xml/html format"""
|
||||
return s.replace('&','&').replace('"', '"').replace('<','<').replace('>','>')
|
||||
|
|
Loading…
Reference in New Issue