1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: Eliminate throwing of string exceptions in wxPython
This is no longer supported as of Python 2.6, and wasn't reliable before that.
Author: Olly Betts <olly@survex.com>
Bug-Debian: http://bugs.debian.org/585339
Bug: http://trac.wxwidgets.org/ticket/15484
Forwarded: http://trac.wxwidgets.org/ticket/15484
Last-Update: 2015-05-22
Applied-Upstream: no
--- a/wxPython/demo/agw/FoldPanelBar.py
+++ b/wxPython/demo/agw/FoldPanelBar.py
@@ -499,7 +499,7 @@
style.SetCaptionStyle(fpb.CAPTIONBAR_FILLED_RECTANGLE)
else:
- raise "ERROR: Undefined Style Selected For CaptionBar: " + repr(eventid)
+ raise Exception, "ERROR: Undefined Style Selected For CaptionBar: " + repr(eventid)
col1 = wx.Colour(self._rslider1.GetValue(), self._gslider1.GetValue(),
self._bslider1.GetValue())
|