diff options
author | Virgil Dupras <vdupras@gentoo.org> | 2019-03-30 19:46:29 -0400 |
---|---|---|
committer | Virgil Dupras <vdupras@gentoo.org> | 2019-03-30 19:46:29 -0400 |
commit | dcf13f76bb21a31516de3f65a7181b95e261478e (patch) | |
tree | 9a6f11f99e004e2e6348e84fe894e01820b6edbb /dev-python/docutils/files | |
parent | x11-wm/mutter: remove old (diff) | |
download | gentoo-dcf13f76bb21a31516de3f65a7181b95e261478e.tar.gz gentoo-dcf13f76bb21a31516de3f65a7181b95e261478e.tar.bz2 gentoo-dcf13f76bb21a31516de3f65a7181b95e261478e.zip |
dev-python/docutils: remove old
Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'dev-python/docutils/files')
-rw-r--r-- | dev-python/docutils/files/docutils-0.11-python3.3-odt-writer.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/dev-python/docutils/files/docutils-0.11-python3.3-odt-writer.patch b/dev-python/docutils/files/docutils-0.11-python3.3-odt-writer.patch deleted file mode 100644 index e84256f3dc43..000000000000 --- a/dev-python/docutils/files/docutils-0.11-python3.3-odt-writer.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- a/docutils/writers/odf_odt/__init__.py -+++ b/docutils/writers/odf_odt/__init__.py -@@ -88,16 +88,20 @@ - # that support for the ability to get the parent of an element. - # - if WhichElementTree == 'elementtree': -- class _ElementInterfaceWrapper(etree._ElementInterface): -+ import weakref -+ _parents = weakref.WeakKeyDictionary() -+ if isinstance(etree.Element, type): -+ _ElementInterface = etree.Element -+ else: -+ _ElementInterface = etree._ElementInterface -+ class _ElementInterfaceWrapper(_ElementInterface): - def __init__(self, tag, attrib=None): -- etree._ElementInterface.__init__(self, tag, attrib) -- if attrib is None: -- attrib = {} -- self.parent = None -+ _ElementInterface.__init__(self, tag, attrib) -+ _parents[self] = None - def setparent(self, parent): -- self.parent = parent -+ _parents[self] = parent - def getparent(self): -- return self.parent -+ return _parents[self] - - - # |