We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 64e8162 + 460ff42 commit 60fc345Copy full SHA for 60fc345
Qt.py
@@ -45,7 +45,7 @@
45
import json
46
47
48
-__version__ = "1.3.3"
+__version__ = "1.3.4"
49
50
# Enable support for `from Qt import *`
51
__all__ = []
@@ -1260,6 +1260,14 @@ def _setup(module, extras):
1260
Qt.__binding__ = module.__name__
1261
1262
def _warn_import_error(exc, module):
1263
+ if sys.version_info > (3, 0):
1264
+ unicode = str
1265
+ else:
1266
+ try:
1267
+ if isinstance(exc, unicode):
1268
+ exc = exc.encode('ascii', 'replace')
1269
+ except (UnboundLocalError, NameError):
1270
+ pass
1271
msg = str(exc)
1272
if "No module named" in msg:
1273
return
0 commit comments