[reportlab-users] Fwd: Get rid of uniChr

Robin Becker robin at reportlab.com
Thu Dec 30 08:06:45 EST 2021




-------- Forwarded Message --------
Subject: Re: [reportlab-users] Get rid of uniChr
Date: Thu, 30 Dec 2021 12:59:20 +0000
From: Robin Becker <robin at reportlab.com>
To: Claude Paroz <claude at 2xlibre.net>

On 30/12/2021 11:30, Claude Paroz wrote:
> Hi all,
> 
> Here is a patch (git-formatted, but checked it can be imported by hg import) that removes the uniChr alias, now that 
> Python 2 is unsupported.
> 
> Claude
.......
that worked fine for me after I removed some usage of uniChr elsewhere. Interestingly I got a strange error from my 
version of Python-3.11; not sure what could cause this (cosmic ray?), but I don't think it has anything to do with the patch

run 1
> reportlab python311
> .........................................................................................................................................................................................................................................................................................................................................................................................
> ----------------------------------------------------------------------
> Ran 377 tests in 27.463s
> 


run 2
> reportlab python311
> .E.......................................................................................................................................................................................................................................................................................................................................................................................
> ======================================================================
> ERROR: test0 (test_platypus_index.IndexTestCase)
> Test case for Indexes. This will draw an index %sat the end of the
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/robin/devel/reportlab/REPOS/reportlab/tests/test_platypus_index.py", line 123, in test0
>     doc.build(story, canvasmaker=index.getCanvasMaker())
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/home/robin/devel/reportlab/reportlab/platypus/doctemplate.py", line 1079, in build
>     self.handle_flowable(flowables)
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/home/robin/devel/reportlab/reportlab/platypus/doctemplate.py", line 945, in handle_flowable
>     raise LayoutError(ident)
>     ^^^^^^^^^^^^^^^^^^^^^^^^
> reportlab.platypus.doctemplate.LayoutError: Splitting error(n==2) on page 3 in
> <Paragraph at 0x7f03b4b4a450 frame=F1>Blah blah This is absolutely disgusting and I'm not going to
> S[0]=<Paragraph at 0x7f03b4b23e50 frame=F1>Blah blah This is absolutely disgusting and I'm not going to
> 
> ----------------------------------------------------------------------
> Ran 377 tests in 27.033s
> 
> FAILED (errors=1)
> !!!!! FAILED !!!!!

run 3
> reportlab python311
> .........................................................................................................................................................................................................................................................................................................................................................................................
> ----------------------------------------------------------------------
> Ran 377 tests in 27.282s
> 
> OK

-- 
Robin Becker


More information about the reportlab-users mailing list