16 lines
574 B
Diff
16 lines
574 B
Diff
Subject: Remove 'U' from 'mode' parameters for various 'open' calls to ensure Python3.11 compatibility
|
|
Bug: 149659
|
|
Tags: common
|
|
diff -rupN a/pyuic/uic/objcreator.py b/pyuic/uic/objcreator.py
|
|
--- a/pyuic/uic/objcreator.py 2023-08-09 05:35:26.993450186 +0300
|
|
+++ b/pyuic/uic/objcreator.py 2023-08-09 06:03:28.803800052 +0300
|
|
@@ -149,7 +149,7 @@ class QObjectCreator(object):
|
|
there was an error.
|
|
"""
|
|
|
|
- plugin = open(filename, 'rU')
|
|
+ plugin = open(filename, 'r')
|
|
|
|
try:
|
|
exec(plugin.read(), plugin_globals, plugin_locals)
|