diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-03-04 20:19:26 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-03-04 20:19:26 (GMT) |
commit | ebcf96d8edab5b9881899b0283a386386c1dc9ef (patch) | |
tree | 083c1aa7f0d7f5052e3670e70af84b4e4dc61444 /abs/extra/epydoc/string-exceptions.patch | |
parent | 47242fb978d60a65c0c449aabd6d68c26a37b0d9 (diff) | |
download | linhes_pkgbuild-ebcf96d8edab5b9881899b0283a386386c1dc9ef.zip linhes_pkgbuild-ebcf96d8edab5b9881899b0283a386386c1dc9ef.tar.gz linhes_pkgbuild-ebcf96d8edab5b9881899b0283a386386c1dc9ef.tar.bz2 |
epydoc: dep of python-lxml
Diffstat (limited to 'abs/extra/epydoc/string-exceptions.patch')
-rw-r--r-- | abs/extra/epydoc/string-exceptions.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/abs/extra/epydoc/string-exceptions.patch b/abs/extra/epydoc/string-exceptions.patch new file mode 100644 index 0000000..eca9793 --- /dev/null +++ b/abs/extra/epydoc/string-exceptions.patch @@ -0,0 +1,18 @@ +# Description: Get rid of string exceptions. +# One of the changes brought by Python 2.6 is the removal of string +# exceptions. A mass bug filing identified Epydoc as having potential +# problems. I later spot-checked all of the exceptions in the code, and I +# believe this is the only one that we have to worry about. +# Bug-Debian: http://bugs.debian.org/585290 +# Author: Kenneth J. Pronovici <pronovic@debian.org> +--- a/epydoc/apidoc.py ++++ b/epydoc/apidoc.py +@@ -1352,7 +1352,7 @@ class ClassDoc(NamespaceDoc): + nothead=[s for s in nonemptyseqs if cand in s[1:]] + if nothead: cand=None #reject candidate + else: break +- if not cand: raise "Inconsistent hierarchy" ++ if not cand: raise TypeError("Inconsistent hierarchy") + res.append(cand) + for seq in nonemptyseqs: # remove cand + if seq[0] == cand: del seq[0] |