Arch: linting multiple imports on one line (#9281)
This commit is contained in:
@@ -20,9 +20,11 @@
|
||||
#* *
|
||||
#***************************************************************************
|
||||
|
||||
import FreeCAD, ArchComponent
|
||||
import FreeCAD
|
||||
import ArchComponent
|
||||
if FreeCAD.GuiUp:
|
||||
import FreeCADGui, Arch_rc
|
||||
import FreeCADGui
|
||||
import Arch_rc
|
||||
from draftutils.translate import translate
|
||||
from PySide.QtCore import QT_TRANSLATE_NOOP
|
||||
else:
|
||||
@@ -214,7 +216,9 @@ class _ArchPipe(ArchComponent.Component):
|
||||
|
||||
def execute(self,obj):
|
||||
|
||||
import Part,DraftGeomUtils,math
|
||||
import math
|
||||
import Part
|
||||
import DraftGeomUtils
|
||||
pl = obj.Placement
|
||||
w = self.getWire(obj)
|
||||
if not w:
|
||||
@@ -372,7 +376,10 @@ class _ArchPipeConnector(ArchComponent.Component):
|
||||
tol = 1 # tolerance for alignment. This is only visual, we can keep it low...
|
||||
ptol = 0.001 # tolerance for coincident points
|
||||
|
||||
import math,Part,DraftGeomUtils,ArchCommands
|
||||
import math
|
||||
import Part
|
||||
import DraftGeomUtils
|
||||
import ArchCommands
|
||||
if len(obj.Pipes) < 2:
|
||||
return
|
||||
if len(obj.Pipes) > 3:
|
||||
|
||||
Reference in New Issue
Block a user