[Python-3000-checkins] r63479 - python/branches/py3k/Modules/mathmodule.c

neal.norwitz python-3000-checkins at python.org
Tue May 20 06:39:15 CEST 2008


Author: neal.norwitz
Date: Tue May 20 06:39:15 2008
New Revision: 63479

Log:
Remove duplicate check for PyLong_Check().  It was checked above.


Modified:
   python/branches/py3k/Modules/mathmodule.c

Modified: python/branches/py3k/Modules/mathmodule.c
==============================================================================
--- python/branches/py3k/Modules/mathmodule.c	(original)
+++ python/branches/py3k/Modules/mathmodule.c	Tue May 20 06:39:15 2008
@@ -450,9 +450,6 @@
 			}
 		}
 	}
-	else if (PyLong_Check(oexp)) {
-		exp = PyLong_AS_LONG(oexp);
-	}
 	else {
 		PyErr_SetString(PyExc_TypeError,
 				"Expected an int or long as second argument "


More information about the Python-3000-checkins mailing list