diff options
author | CoprDistGit <infra@openeuler.org> | 2023-07-10 08:10:32 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-07-10 08:10:32 +0000 |
commit | bf5ae974e1c9a904ce6cb2ce42bbc61a563e1ad3 (patch) | |
tree | bd4163e05c4d7b06bd6d394341af38d669cb8786 /libsbml-drop-formatter-import.diff | |
parent | 6a993806e5366cf38f454229aeea6b9e4f4fddb2 (diff) |
automatic import of libsbmlopeneuler20.03
Diffstat (limited to 'libsbml-drop-formatter-import.diff')
-rw-r--r-- | libsbml-drop-formatter-import.diff | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libsbml-drop-formatter-import.diff b/libsbml-drop-formatter-import.diff new file mode 100644 index 0000000..ccbc5ff --- /dev/null +++ b/libsbml-drop-formatter-import.diff @@ -0,0 +1,24 @@ +--- libSBML-5.19.0-Source/src/bindings/python/doc-converter/rewrite_pydoc.py~ 2020-11-25 12:03:01.000000000 +0100 ++++ libSBML-5.19.0-Source/src/bindings/python/doc-converter/rewrite_pydoc.py 2021-01-17 11:55:21.317440267 +0100 +@@ -118,7 +118,6 @@ + import sys + import os + import textwrap +-from formatter import NullWriter, AbstractFormatter + try: + from htmllib import HTMLParser + except Exception: +@@ -192,12 +191,10 @@ + # writes all text to an internal string variable. The contents can be + # obtained using a call to get_text(). + +-class RewritePydocStringWriter(NullWriter): +- ++class RewritePydocStringWriter: + def __init__(self, maxcol=72): + self.text = '' + self.maxcol = maxcol +- NullWriter.__init__(self) + self.reset() + + def reset(self): |