~ubuntu-branches/debian/jessie/phatch/jessie

« back to all changes in this revision

Viewing changes to debian/patches/do_not_raise_string_exceptions.patch

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2010-05-27 20:17:37 UTC
  • Revision ID: package-import@ubuntu.com-20100527201737-awcn0u6ss2hdwtzi
Tags: 0.2.7-2
* Prepare for Python 2.6:
  - do_not_raise_string_exceptions.patch added
* Source package format changed to 3.0 (quilt)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: phatch-0.2.7/phatch/lib/pyWx/treeDragDrop.py
 
2
===================================================================
 
3
--- phatch-0.2.7.orig/phatch/lib/pyWx/treeDragDrop.py
 
4
+++ phatch-0.2.7/phatch/lib/pyWx/treeDragDrop.py
 
5
@@ -78,7 +78,7 @@ class Mixin:
 
6
                 return 0
 
7
             return 1
 
8
         else:
 
9
-            raise 'no order'
 
10
+            raise Exception('no order')
 
11
 
 
12
     # Drag & drop
 
13
     def EnableDrag(self, dragTo=None):
 
14
Index: phatch-0.2.7/phatch/other/pubsub.py
 
15
===================================================================
 
16
--- phatch-0.2.7.orig/phatch/other/pubsub.py
 
17
+++ phatch-0.2.7/phatch/other/pubsub.py
 
18
@@ -97,7 +97,7 @@ def _paramMinCount(callableObject):
 
19
     elif isfunction(callableObject):
 
20
         return _paramMinCountFunc(callableObject)
 
21
     else:
 
22
-        raise 'Cannot determine type of callable: '+repr(callableObject)
 
23
+        raise Exception('Cannot determine type of callable: '+repr(callableObject))
 
24
 
 
25
 
 
26
 def _tupleize(items):