[pypy-svn] r61416 - pypy/trunk/pypy/lib

afa at codespeak.net afa at codespeak.net
Wed Jan 28 10:13:46 CET 2009


Author: afa
Date: Wed Jan 28 10:13:46 2009
New Revision: 61416

Modified:
   pypy/trunk/pypy/lib/_csv.py
Log:
Fix one test in test_csv


Modified: pypy/trunk/pypy/lib/_csv.py
==============================================================================
--- pypy/trunk/pypy/lib/_csv.py	(original)
+++ pypy/trunk/pypy/lib/_csv.py	Wed Jan 28 10:13:46 2009
@@ -519,6 +519,9 @@
     Returns old limit. If limit is not given, no new limit is set and
     the old limit is returned"""
 
+    if not isinstance(limit, (long, int)):
+        raise TypeError("limit must be an integer")
+
     global _field_limit
     old_limit = _field_limit
     



More information about the Pypy-commit mailing list