[reportlab-users] Deprecated warning on Python 3.10

Robin Becker robin at reportlab.com
Mon Oct 2 14:49:51 EDT 2023


On 30/09/2023 06:53, Frank Epperlein wrote:
> Hi Robin,
> 
> first I have to say that for me it is surprisingly still working with python 3.12.0rc3 - even with the old code - so for whatever reason they did not remove the import_module function yet. I still get only the warning.
> 
> I tested your code change in 18ae86d14b0a and it resolves the issue for me.
> 
> I also tested if the change removes the warning in pytest (what the author of the original mail complained about) and it is also solved there.
> 
> Thank you! :)
> 

Hi Frank, thanks for the report. I suspect that real error might have been hidden by the try except structure.

I will take a look at the utils.py issue later. I don't think we are using the zip import stuff any longer. It is as you 
mention supported by python's import implementation now.
--
Robin Becker

> We do not need the utils.py import, so I cannot really test it. Anyhow in our codebase we have similar usages and there we solve it like this:
> 
> --- a/lib/utils.py
> +++ b/lib/utils.py..........r



More information about the reportlab-users mailing list