File: baseexception.patch

package info (click to toggle)
pyrex 0.9.9-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,556 kB
  • ctags: 2,601
  • sloc: python: 12,966; ansic: 3,092; makefile: 106; sh: 20; lisp: 12
file content (24 lines) | stat: -rw-r--r-- 634 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- pyrex-0.9.8.5~/Pyrex/Plex/Errors.py  2003-07-08 18:35:31.000000000 +1000
+++ pyrex-0.9.8.5/Pyrex/Plex/Errors.py 2009-05-24 00:53:54.000000000 +1000
@@ -9,7 +9,7 @@
 import exceptions
 
 class PlexError(exceptions.Exception):
-  message = ""
+  pass
 
 class PlexTypeError(PlexError, TypeError):
   pass
@@ -29,10 +29,10 @@
   pass
 
 class AmbiguousAction(PlexError):
-  message = "Two tokens with different actions can match the same string"
 
   def __init__(self):
-    pass
+    PlexError.__init__(self, "Two tokens with different actions can match the same string")
+
 
 class UnrecognizedInput(PlexError):
   scanner = None