a guest Dec 3rd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Traceback (most recent call last):
  2.   File "/Users/bulat/Downloads/python228/", line 7, in <module>
  3.     dat1.write('new.xml', rent)
  4.   File "/Users/bulat/Downloads/python228/", line 70, in write
  5.     f.write(dom.toprettyxml(encoding="utf-8"))
  6.   File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/xml/dom/", line 59, in toprettyxml
  7.     self.writexml(writer, "", indent, newl, encoding)
  8.   File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/xml/dom/", line 1796, in writexml
  9.     node.writexml(writer, indent, addindent, newl)
  10.   File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/xml/dom/", line 870, in writexml
  11.     node.writexml(writer, indent+addindent, addindent, newl)
  12.   File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/xml/dom/", line 860, in writexml
  13.     _write_data(writer, attrs[a_name].value)
  14.   File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/xml/dom/", line 305, in _write_data
  15.     data = data.replace("&", "&amp;").replace("<", "&lt;"). \
  16. AttributeError: 'int' object has no attribute 'replace'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand