You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ORPA-pyOpenRPA/Resources/WPy64-3720/python-3.7.2.amd64/Lib/site-packages/nbformat/v2/nbxml.py

28 lines
779 B

"""REMOVED: Read and write notebook files as XML.
"""
REMOVED_MSG = """\
Reading notebooks as XML has been removed to harden security and avoid
possible denial-of-service attacks.
The XML notebook format was deprecated before the Jupyter (previously IPython)
Notebook was ever released. We are not aware of anyone using it, so we have
removed it.
If you were using this code, and you need to continue using it, feel free to
fork an earlier version of the nbformat package and maintain it yourself.
The issue which prompted this removal is:
https://github.com/jupyter/nbformat/issues/132
"""
def reads(s, **kwargs):
raise Exception(REMOVED_MSG)
def read(fp, **kwargs):
raise Exception(REMOVED_MSG)
def to_notebook(root, **kwargs):
raise Exception(REMOVED_MSG)