remove most of Python2 compatibility code

This commit is contained in:
Alexandre Detiste
2024-03-22 00:06:03 +01:00
committed by Scott Talbert
parent beb9932241
commit 0257f755cf
108 changed files with 220 additions and 2144 deletions

View File

@@ -2,7 +2,6 @@
import sys
import os
import glob
import six
import wx
from wx.svg import SVGimage
@@ -26,8 +25,6 @@ class SVGRenderPanel(wx.Panel):
def SetSVGFile(self, svg_filename):
if six.PY2 and isinstance(svg_filename, unicode):
svg_filename = svg_filename.encode(sys.getfilesystemencoding())
self._img = SVGimage.CreateFromFile(svg_filename)
self.Refresh()