From: spo Date: Mon, 26 Oct 2015 12:40:20 +0000 (+0300) Subject: Clean code X-Git-Tag: V_2.1.0~206^2~69 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1d2fd13452d936a9f4bb58d3414ab97f229919d2;p=modules%2Fshaper.git Clean code --- diff --git a/src/PythonAPI/model/tools.py b/src/PythonAPI/model/tools.py index 8626b823b..eb6243e82 100644 --- a/src/PythonAPI/model/tools.py +++ b/src/PythonAPI/model/tools.py @@ -48,19 +48,10 @@ class Selection: assert(len(args) > 1 and len(args) < 4) assert(isinstance(args[0], basestring) or isinstance(args[0], ModelAPI.ModelAPI_Result)) -# "args[0] should be str or ModelAPI_Result (%s given)." % -# type(args[0])) if isinstance(args[0], basestring): assert(isinstance(args[1], basestring)) -# , -# "args[1] should be str (%s given)." % -# type(args[1])) elif isinstance(args[0], ModelAPI.ModelAPI_Result) or args[0] is None: assert(isinstance(args[1], GeomAPI.GeomAPI_Shape)) - -# , -# "args[1] should be GeomAPI_Shape (%s given)." % -# type(args[1])) self.args = args