Draft/Arch: maintain Python 2 compatibility

In order to pass test under Python 2
This commit is contained in:
Zheng, Lei
2019-08-23 16:40:30 +08:00
committed by wmayer
parent 52d30b4053
commit eb24c84468
2 changed files with 3 additions and 3 deletions

View File

@@ -22,6 +22,7 @@
#* *
#***************************************************************************
from __future__ import print_function
import sys
import FreeCAD, time
if FreeCAD.GuiUp:

View File

@@ -148,9 +148,8 @@ class CommandFillet(DraftTools.Line):
FreeCADGui.addModule("Draft")
func = DraftTools.translate("draft", "Create fillet")
arg = ['arc = DraftFillet.makeFillet(' + _wires + ')',
*rems,
'Draft.autogroup(arc)',
arg = ['arc = DraftFillet.makeFillet(' + _wires + ')'] + rems +\
['Draft.autogroup(arc)',
'FreeCAD.ActiveDocument.recompute()']
DraftGui.todo.delayCommit([(func, arg)])