diff options
author | Collin Winter <collinw@gmail.com> | 2007-08-22 23:05:23 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-08-22 23:05:23 (GMT) |
commit | 1dd46a048f4afd9a3bc1e3c9c1603d26f2e33e27 (patch) | |
tree | 4b258391e4693a7fa9db93c30b10414d6480112a /Mac/Modules/cf/cfsupport.py | |
parent | a817e5894b20d68263056bf9af8f1582954b1d8f (diff) | |
download | cpython-1dd46a048f4afd9a3bc1e3c9c1603d26f2e33e27.zip cpython-1dd46a048f4afd9a3bc1e3c9c1603d26f2e33e27.tar.gz cpython-1dd46a048f4afd9a3bc1e3c9c1603d26f2e33e27.tar.bz2 |
Convert raise statements in Mac/.
Diffstat (limited to 'Mac/Modules/cf/cfsupport.py')
-rw-r--r-- | Mac/Modules/cf/cfsupport.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Modules/cf/cfsupport.py b/Mac/Modules/cf/cfsupport.py index 655331e..23c8598 100644 --- a/Mac/Modules/cf/cfsupport.py +++ b/Mac/Modules/cf/cfsupport.py @@ -24,14 +24,14 @@ class MethodSkipArg1(MethodGenerator): def parseArgumentList(self, args): if len(args) < 2: - raise ValueError, "MethodSkipArg1 expects at least 2 args" + raise ValueError("MethodSkipArg1 expects at least 2 args") a0, a1, args = args[0], args[1], args[2:] t0, n0, m0 = a0 if t0 != "CFAllocatorRef" and m0 != InMode: - raise ValueError, "MethodSkipArg1 should have dummy AllocatorRef first arg" + raise ValueError("MethodSkipArg1 should have dummy AllocatorRef first arg") t1, n1, m1 = a1 if m1 != InMode: - raise ValueError, "method's 'self' must be 'InMode'" + raise ValueError("method's 'self' must be 'InMode'") dummy = Variable(t0, n0, m0) self.argumentList.append(dummy) self.itself = Variable(t1, "_self->ob_itself", SelfMode) |