1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-04-30 00:04:26 -04:00
Juergen E. Fischer fb3fcfa3a0 Python3/Qt5/2to3 updates:
* pyqtwrappers update (add QtNetwork, QtXml, QtSql, QtTest, uic)
* 2to3 updates
* move QPyNullVariant/NULL to PyQt.QtCore
* add global unicode/basestring/long for Python3
* expand QtGui, QtCore module and star exports
* Qscintilla2
* replace Set import with set builtin
2016-03-14 20:38:20 +01:00

10 lines
286 B
Python

from lib2to3.fixes.fix_import import FixImport as FixImportOrig
class FixImport(FixImportOrig):
def probably_a_local_import(self, imp_name):
if imp_name.startswith(u"PyQt"):
return False
return super(FixImport, self).probably_a_local_import(imp_name)