mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 12:00:13 +01:00
remove most of Python2 compatibility code
This commit is contained in:
committed by
Scott Talbert
parent
beb9932241
commit
0257f755cf
@@ -2,7 +2,6 @@
|
||||
import sys
|
||||
import os
|
||||
import glob
|
||||
import six
|
||||
|
||||
import wx
|
||||
from wx.svg import SVGimage
|
||||
@@ -26,8 +25,6 @@ class SVGBitmapDisplay(wx.Panel):
|
||||
|
||||
|
||||
def UpdateSVG(self, svg_filename):
|
||||
if six.PY2 and isinstance(svg_filename, unicode):
|
||||
svg_filename = svg_filename.encode(sys.getfilesystemencoding())
|
||||
img = SVGimage.CreateFromFile(svg_filename)
|
||||
bmp = img.ConvertToScaledBitmap(self.bmp_size, self)
|
||||
self.statbmp.SetBitmap(bmp)
|
||||
|
||||
Reference in New Issue
Block a user