Skip to content

Commit

Permalink
Draft/Arch: maintain Python 2 compatibility
Browse files Browse the repository at this point in the history
In order to pass test under Python 2
  • Loading branch information
realthunder authored and wwmayer committed Aug 30, 2019
1 parent d16cd4f commit 2c2aada
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/Mod/Arch/ArchSchedule.py
Expand Up @@ -22,6 +22,7 @@
#* *
#***************************************************************************

from __future__ import print_function
import sys
import FreeCAD, time
if FreeCAD.GuiUp:
Expand Down
5 changes: 2 additions & 3 deletions src/Mod/Draft/DraftFillet.py
Expand Up @@ -148,9 +148,8 @@ def Activated(self):
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)])

Expand Down

0 comments on commit 2c2aada

Please sign in to comment.