apply() was removed in Python 3
Created by: cclauss
The nonessential builtin function apply() was deprecated in Python 2.3 and was removed in Python 3.
./src/Mod/Test/unittestgui.py:54:9: F821 undefined name 'apply'
apply(self.initGUI, args, kwargs)
^
./src/Mod/Test/unittestgui.py:78:13: F821 undefined name 'apply'
apply(traceback.print_exception,sys.exc_info())
^
./src/Mod/Test/unittestgui.py:344:26: F821 undefined name 'apply'
tracebackLines = apply(traceback.format_exception, error + (10,))
^
./src/Mod/Test/unittestgui.py:359:9: F821 undefined name 'apply'
apply(tk.Frame.__init__, (self,) + args, kwargs)
^
Thank you for creating a pull request to contribute to FreeCAD! To ease integration, please confirm the following:
-
Branch rebased on latest master git pull --rebase upstream master
-
Unit tests confirmed to pass by running ./bin/FreeCAD --run-test 0
-
Commit message is well-written -
Commit message includes issue #<id>
orfixes #<id>
where<id>
is the associated MantisBT issue id if one exists
And please remember to update the Wiki with the features added or changed once this PR is merged.