[PyQt] objcreator.py: DeprecationWarning: 'U' mode is deprecated

Phil Thompson phil at riverbankcomputing.com
Wed Oct 23 16:03:39 BST 2019


On 23/10/2019 13:29, Valentin VALLS wrote:
> Hi,
> 
> I am using PyQt5 from conda installation, with Python 3.7
> 
> pyqt                      5.9.2            py37h05f1152_2
> qt                        5.9.7                h5867ecd_1
> 
> 
> I receive this warning, from the helper loadui.
> 
> /bliss/users/foo/miniconda3/envs/bar/lib/python3.7/site-packages/PyQt5/uic/objcreator.py:152:
> DeprecationWarning: 'U' mode is deprecated
>   plugin = open(filename, 'rU')
> 
> Was feedback already provided for this problem? Could it be possible
> to fix that for Python 3? That's maybe already fixed on your side?
> 
> I case, I can provide to you a patch if you like.

Patches are always welcome but they must work for all supported versions 
of Python.

Phil



More information about the PyQt mailing list