--- PythonCAD/Generic/layer.py.orig +++ PythonCAD/Generic/layer.py @@ -474,15 +474,15 @@ raise TypeError, "Unexpected type: " + `type(obj)` return (_split, _objs) - def setAutosplit(self, as): + def setAutosplit(self, autosplit): """Set the autosplit state of the Layer. -setAutosplit(as) - -Argument 'as' must be a Boolean. - """ - util.test_boolean(as) - self.__asplit = as +setAutosplit(autosplit) + +Argument 'autosplit' must be a Boolean. + """ + util.test_boolean(autosplit) + self.__asplit = autosplit def getAutosplit(self): """Retrieve the autosplit state of the Layer.