File: wxpython3.0-eliminate-string-exceptions.patch

package info (click to toggle)
wxpython3.0 3.0.2.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 482,760 kB
  • ctags: 518,293
  • sloc: cpp: 2,127,226; python: 294,045; makefile: 51,942; ansic: 19,033; sh: 3,013; xml: 1,629; perl: 17
file content (20 lines) | stat: -rw-r--r-- 883 bytes parent folder | download | duplicates (2)
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())