[Python-apps-team] Bug#929954: [python-reportlab] 3.5.21-1 breaks rst2pdf

devel at sumpfralle.de devel at sumpfralle.de
Thu Jun 6 11:38:08 BST 2019


control: tags -1 +patch +fixed-upstream


Hello,


On Wed, 5 Jun 2019 11:02:38 +0200 Matthias Klose <doko at debian.org> wrote:
> Control: reassign -1 rst2pdf
> 
> not sure how that worked in the past, but flowables.py is using
> reportlab.Version without importing it.

I tracked it down for fun (with v2.6 of reportlab):
1) evil wildcard import of "reportlab.platypus.doctemplate"
2) "import reportlab.lib.sequencer" secretly imported "reportlab" into
   the global namespace (which was imported via the wildcard above)

The trivial upstream fix for this import issue is here (0.94-151-gc6662f91):
 https://github.com/rst2pdf/rst2pdf/commit/c6662f914013d3423130f0ad8c7b2e443613af97

Cheers,
Lars



More information about the Python-apps-team mailing list