diff options
author | Martijn Pieters <mj@zopatista.co> | 2005-08-30 21:50:19 +0000 |
---|---|---|
committer | Martijn Pieters <mj@zopatista.co> | 2005-08-30 21:50:19 +0000 |
commit | e6264461ad16af584cae4270dde226f5405aa7d9 (patch) | |
tree | 93b5d178561e2edd8bcc37906731149391f3103a | |
parent | eef1a08d3467d66d169484766dfe10e377071a37 (diff) | |
download | zope-tal-e6264461ad16af584cae4270dde226f5405aa7d9.tar.gz |
Massive style cleanup: Move to new raise exception style; for motivation, see:
http://permalink.gmane.org/gmane.comp.web.zope.zope3/13884
-rw-r--r-- | ndiff.py | 4 | ||||
-rw-r--r-- | talinterpreter.py | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -514,7 +514,7 @@ def fancy_replace(a, alo, ahi, b, blo, bhi): atags = atags + ' ' * la btags = btags + ' ' * lb else: - raise ValueError, 'unknown tag ' + `tag` + raise ValueError('unknown tag ' + `tag`) printq(aelt, belt, atags, btags) else: # the synch pair is identical @@ -588,7 +588,7 @@ def fcompare(f1name, f2name): elif tag == 'equal': dump(' ', a, alo, ahi) else: - raise ValueError, 'unknown tag ' + `tag` + raise ValueError('unknown tag ' + `tag`) return 1 diff --git a/talinterpreter.py b/talinterpreter.py index 6506686..d4f16d4 100644 --- a/talinterpreter.py +++ b/talinterpreter.py @@ -1026,4 +1026,4 @@ class FasterStringIO(StringIO): def _write_ValueError(s): - raise ValueError, "I/O operation on closed file" + raise ValueError("I/O operation on closed file") |