[Path] remove check for python 2

This commit is contained in:
Uwe
2022-07-23 15:12:35 +02:00
parent cf96b23b3e
commit cce5de8087
2 changed files with 0 additions and 18 deletions

View File

@@ -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

View File

@@ -31,8 +31,6 @@ from PathTests.PathTestUtils import PathTestBase
def refstring(string):
if sys.version_info.major < 3:
return string
return string.replace(" u'", " '")