]> granicus.if.org Git - yasm/commitdiff
* intnum.pxi: Use correct name for NotImplementedError.
authorPeter Johnson <peter@tortall.net>
Sun, 16 Apr 2006 02:56:54 +0000 (02:56 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 16 Apr 2006 02:56:54 +0000 (02:56 -0000)
svn path=/trunk/yasm/; revision=1490

tools/python-yasm/intnum.pxi

index 15e7501b3703ff0fb12badc8d8a2d8693cf4bb23..6d157484f53a6b00d8a51747e96c98510ab7721f 100644 (file)
@@ -86,7 +86,7 @@ cdef object __intnum_op(object x, yasm_expr_op op, object y):
         yasm_intnum_calc((<IntNum>result).intn, op, (<IntNum>y).intn, 0)
         return result
     else:
-        raise NotImplemented
+        raise NotImplementedError
 
 cdef object __make_intnum(yasm_intnum *intn):
     return IntNum(PyCObject_FromVoidPtr(intn, NULL))
@@ -195,6 +195,6 @@ cdef class IntNum:
         elif op == 3: aop = YASM_EXPR_NE
         elif op == 4: aop = YASM_EXPR_GT
         elif op == 5: aop = YASM_EXPR_GE
-        else: raise NotImplemented
+        else: raise NotImplementedError
         v = __intnum_op(x, aop, y)
         return bool(not yasm_intnum_is_zero((<IntNum>v).intn))