Py3 and Phoenix fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-06-04 16:10:17 +00:00
parent c9ce5cad60
commit 68ea7237ce
2 changed files with 8 additions and 7 deletions

View File

@@ -9,7 +9,7 @@
# Copyright: (c) 2007 by Total Control Software
# Licence: wxWindows license
#
# Tags: phoenix-port, documented
# Tags: py3-port, phoenix-port, documented
#----------------------------------------------------------------------------
# NOTE: This class was originally based on ideas sent to the
@@ -28,6 +28,7 @@ import wx.py
import wx.stc
#import wx.aui as aui
import wx.lib.agw.aui as aui
import wx.lib.six as six
import wx.lib.utils as utils
import sys
import inspect
@@ -627,7 +628,7 @@ class InspectionInfoPanel(wx.stc.StyledTextCtrl):
def Fmt(self, name, value):
if isinstance(value, (str, unicode)):
if isinstance(value, six.string_types):
return " %s = '%s'" % (name, value)
else:
return " %s = %s" % (name, value)