mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
14 lines
394 B
Python
14 lines
394 B
Python
from libfuturize.fixes.fix_absolute_import import (
|
|
FixAbsoluteImport as FixAbsoluteImportOrig,
|
|
)
|
|
|
|
|
|
class FixAbsoluteImport(FixAbsoluteImportOrig):
|
|
|
|
def probably_a_local_import(self, imp_name):
|
|
if imp_name.startswith("PyQt"):
|
|
return False
|
|
if imp_name == "AlgorithmsTestBase":
|
|
return False
|
|
return super().probably_a_local_import(imp_name)
|