summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ndiff.py4
-rw-r--r--talinterpreter.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/ndiff.py b/ndiff.py
index 5c644c6..7873abc 100644
--- a/ndiff.py
+++ b/ndiff.py
@@ -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")