Re: objcreator.py: DeprecationWarning: 'U' mode is deprecated

Phil Thompson <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
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

_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.