git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33456
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
%pythoncode {
def __repr__(self):
if self.IsValid():
%pythoncode {
def __repr__(self):
if self.IsValid():
- return '<wx.DateTime: \"%s\" at %s>' % ( self.Format(), self.this)
+ f = self.Format().encode(wx.GetDefaultPyEncoding())
+ return '<wx.DateTime: \"%s\" at %s>' % ( f, self.this)
else:
return '<wx.DateTime: \"INVALID\" at %s>' % self.this
def __str__(self):
if self.IsValid():
else:
return '<wx.DateTime: \"INVALID\" at %s>' % self.this
def __str__(self):
if self.IsValid():
+ return self.Format().encode(wx.GetDefaultPyEncoding())
else:
return "INVALID DateTime"
}
else:
return "INVALID DateTime"
}
%pythoncode {
def __repr__(self):
%pythoncode {
def __repr__(self):
- return '<wx.TimeSpan: \"%s\" at %s>' % ( self.Format(), self.this)
+ f = self.Format().encode(wx.GetDefaultPyEncoding())
+ return '<wx.TimeSpan: \"%s\" at %s>' % ( f, self.this)
+ return self.Format().encode(wx.GetDefaultPyEncoding())