diff --git a/src/Mod/Path/PathScripts/PathDressupHoldingTags.py b/src/Mod/Path/PathScripts/PathDressupHoldingTags.py index db6426c2d6..57a38c6285 100644 --- a/src/Mod/Path/PathScripts/PathDressupHoldingTags.py +++ b/src/Mod/Path/PathScripts/PathDressupHoldingTags.py @@ -609,10 +609,6 @@ class MapWireToTag: "Exception during processing tag @(%.2f, %.2f) (%s) - disabling the tag" % (self.tag.x, self.tag.y, e.args[0]) ) - # if sys.version_info.major < 3: - # traceback.print_exc(e) - # else: - # traceback.print_exc() self.tag.enabled = False commands = [] for e in self.edges: @@ -705,10 +701,6 @@ class PathData: if wire.isClosed(): return wire except Exception: - # if sys.version_info.major < 3: - # traceback.print_exc(e) - # else: - # traceback.print_exc() return None def supportsTagGeneration(self): @@ -1275,10 +1267,6 @@ class ObjectTagDressup: PathLog.error( "processing tags failed clearing all tags ... '%s'" % (e.args[0]) ) - # if sys.version_info.major < 3: - # traceback.print_exc(e) - # else: - # traceback.print_exc() obj.Path = obj.Base.Path # update disabled in case there are some additional ones @@ -1323,10 +1311,6 @@ class ObjectTagDressup: ) + "\n" ) - # if sys.version_info.major < 3: - # traceback.print_exc(e) - # else: - # traceback.print_exc() return None self.toolRadius = float(PathDressup.toolController(obj.Base).Tool.Diameter) / 2 diff --git a/src/Mod/Path/PathTests/TestPathSetupSheet.py b/src/Mod/Path/PathTests/TestPathSetupSheet.py index 9b74a12301..5d226ddeb6 100644 --- a/src/Mod/Path/PathTests/TestPathSetupSheet.py +++ b/src/Mod/Path/PathTests/TestPathSetupSheet.py @@ -31,8 +31,6 @@ from PathTests.PathTestUtils import PathTestBase def refstring(string): - if sys.version_info.major < 3: - return string return string.replace(" u'", " '")