changeset 18178:6ae45c0b4625

test-symlink-os-yes-fs-no.py: clean up use of two-argument raise This makes any attempt to port to Python 3 harder, and the new syntax is supported in 2.4 already.
author Augie Fackler <raf@durin42.com>
date Tue, 01 Jan 2013 13:21:15 -0600
parents 203b7a759218
children f614543733b6
files tests/test-symlink-os-yes-fs-no.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-symlink-os-yes-fs-no.py	Tue Jan 01 12:51:00 2013 -0600
+++ b/tests/test-symlink-os-yes-fs-no.py	Tue Jan 01 13:21:15 2013 -0600
@@ -24,7 +24,7 @@
 # now disable symlink support -- this is what os.symlink would do on a
 # non-symlink file system
 def symlink_failure(src, dst):
-    raise OSError, (1, "Operation not permitted")
+    raise OSError(1, "Operation not permitted")
 os.symlink = symlink_failure
 
 # dereference links as if a Samba server has exported this to a