CopySupport defines a STRING exception
Bug #373299 reported by
auspex
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Undecided
|
Tres Seaver |
Bug Description
Zope 2.10.6-final
In OFS/CopySupport.py, CopyError is a string exception - long deprecated in Python. It should be a class derived from Exception, and here's a patch:
$ diff -u CopySupport.py*
--- CopySupport.py 2009-05-07 11:55:30.299870897 -0300
+++ CopySupport.py~ 2009-05-07 11:55:13.899869712 -0300
@@ -48,8 +48,7 @@
from OFS.interfaces import ICopySource
-class CopyError(
-
+CopyError='Copy Error'
copy_re = re.compile(
Changed in zope2: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Damn. Except for the fact that I got the patch backwards _again_!
--- CopySupport.py~ 2009-05-07 11:55:13.899869712 -0300
+++ CopySupport.py 2009-05-07 11:55:30.299870897 -0300
@@ -48,7 +48,8 @@
from OFS.interfaces import ICopySource
-CopyError='Copy Error' Exception) : pass
+class CopyError(
+
copy_re = re.compile( '^copy( [0-9]*) _of_(.* )')