mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user