diff Modules/_csv.c @ 44099:f324631462a2

Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
author Christian Heimes <christian@cheimes.de>
date Sun, 02 Dec 2007 14:31:20 +0000
parents 4c39029e3fb0
children 81e0c0e2a8c1
line wrap: on
line diff
--- a/Modules/_csv.c	Sun Dec 02 09:40:06 2007 +0000
+++ b/Modules/_csv.c	Sun Dec 02 14:31:20 2007 +0000
@@ -162,7 +162,7 @@
 static PyObject *
 Dialect_get_quoting(DialectObj *self)
 {
-        return PyInt_FromLong(self->quoting);
+        return PyLong_FromLong(self->quoting);
 }
 
 static int
@@ -186,7 +186,7 @@
 				     "\"%s\" must be an integer", name);
 			return -1;
 		}
-		*target = PyInt_AsLong(src);
+		*target = PyLong_AsLong(src);
 	}
 	return 0;
 }
@@ -1390,9 +1390,9 @@
 				     "limit must be an integer");
 			return NULL;
 		}
-		field_limit = PyInt_AsLong(new_limit);
+		field_limit = PyLong_AsLong(new_limit);
 	}
-	return PyInt_FromLong(old_limit);
+	return PyLong_FromLong(old_limit);
 }
 
 /*