FEM: lgtm, do not test if for a constant, because it will give the same result in any case
This commit is contained in:
@@ -35,7 +35,7 @@ import FemGui # needed to display the icons in TreeView
|
||||
|
||||
from pivy import coin
|
||||
|
||||
False if False else FemGui.__name__ # flake8, dummy FemGui usage, returns 'FemGui'
|
||||
False if FemGui.__name__ else True # flake8, dummy FemGui usage
|
||||
|
||||
|
||||
class ViewProxy(object):
|
||||
|
||||
@@ -40,7 +40,7 @@ from PySide import QtCore
|
||||
from PySide import QtGui
|
||||
from . import FemSelectionWidgets
|
||||
|
||||
False if False else FemGui.__name__ # flake8, dummy FemGui usage, returns 'FemGui'
|
||||
False if FemGui.__name__ else True # flake8, dummy FemGui usage
|
||||
|
||||
|
||||
class _ViewProviderFemElementFluid1D:
|
||||
|
||||
@@ -37,7 +37,7 @@ from femobjects import _FemElementGeometry1D
|
||||
from PySide import QtCore
|
||||
from . import FemSelectionWidgets
|
||||
|
||||
False if False else FemGui.__name__ # flake8, dummy FemGui usage, returns 'FemGui'
|
||||
False if FemGui.__name__ else True # flake8, dummy FemGui usage
|
||||
|
||||
|
||||
class _ViewProviderFemElementGeometry1D:
|
||||
|
||||
@@ -36,7 +36,7 @@ import FemGui # needed to display the icons in TreeView
|
||||
from PySide import QtCore
|
||||
from . import FemSelectionWidgets
|
||||
|
||||
False if False else FemGui.__name__ # flake8, dummy FemGui usage, returns 'FemGui'
|
||||
False if FemGui.__name__ else True # flake8, dummy FemGui usage
|
||||
|
||||
|
||||
class _ViewProviderFemElementGeometry2D:
|
||||
|
||||
@@ -36,7 +36,7 @@ import FemGui # needed to display the icons in TreeView
|
||||
from PySide import QtCore
|
||||
from . import FemSelectionWidgets
|
||||
|
||||
False if False else FemGui.__name__ # flake8, dummy FemGui usage, returns 'FemGui'
|
||||
False if FemGui.__name__ else True # flake8, dummy FemGui usage
|
||||
|
||||
|
||||
class _ViewProviderFemElementRotation1D:
|
||||
|
||||
@@ -39,7 +39,7 @@ from PySide import QtCore
|
||||
from PySide import QtGui
|
||||
import sys
|
||||
|
||||
False if False else FemGui.__name__ # flake8, dummy FemGui usage, returns 'FemGui'
|
||||
False if FemGui.__name__ else True # flake8, dummy FemGui usage
|
||||
|
||||
if sys.version_info.major >= 3:
|
||||
unicode = str
|
||||
|
||||
@@ -34,7 +34,7 @@ import FemGui # needed to display the icons in TreeView
|
||||
|
||||
from pivy import coin
|
||||
|
||||
False if False else FemGui.__name__ # flake8, dummy FemGui usage, returns 'FemGui'
|
||||
False if FemGui.__name__ else True # flake8, dummy FemGui usage
|
||||
|
||||
|
||||
class _ViewProviderFemMaterialMechanicalNonlinear:
|
||||
|
||||
@@ -36,7 +36,7 @@ import FemGui # needed to display the icons in TreeView
|
||||
from PySide import QtCore
|
||||
from . import FemSelectionWidgets
|
||||
|
||||
False if False else FemGui.__name__ # flake8, dummy FemGui usage, returns 'FemGui'
|
||||
False if FemGui.__name__ else True # flake8, dummy FemGui usage
|
||||
|
||||
|
||||
class _ViewProviderFemMeshBoundaryLayer:
|
||||
|
||||
@@ -36,7 +36,7 @@ import FemGui # needed to display the icons in TreeView
|
||||
from PySide import QtCore
|
||||
from . import FemSelectionWidgets
|
||||
|
||||
False if False else FemGui.__name__ # flake8, dummy FemGui usage, returns 'FemGui'
|
||||
False if FemGui.__name__ else True # flake8, dummy FemGui usage
|
||||
|
||||
|
||||
class _ViewProviderFemMeshGroup:
|
||||
|
||||
@@ -36,7 +36,7 @@ import FemGui # needed to display the icons in TreeView
|
||||
from PySide import QtCore
|
||||
from . import FemSelectionWidgets
|
||||
|
||||
False if False else FemGui.__name__ # flake8, dummy FemGui usage, returns 'FemGui'
|
||||
False if FemGui.__name__ else True # flake8, dummy FemGui usage
|
||||
|
||||
|
||||
class _ViewProviderFemMeshRegion:
|
||||
|
||||
@@ -40,7 +40,7 @@ from PySide.QtCore import Qt
|
||||
from PySide.QtGui import QApplication
|
||||
import numpy as np
|
||||
|
||||
False if False else FemGui.__name__ # flake8, dummy FemGui usage, returns 'FemGui'
|
||||
False if FemGui.__name__ else True # flake8, dummy FemGui usage
|
||||
|
||||
|
||||
class _ViewProviderFemResultMechanical:
|
||||
|
||||
Reference in New Issue
Block a user