[pypy-commit] pypy default: Slight code clean up in _csv
alex_gaynor
noreply at buildbot.pypy.org
Sat Sep 22 19:46:25 CEST 2012
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r57479:69faddd3525c
Date: 2012-09-22 10:46 -0700
http://bitbucket.org/pypy/pypy/changeset/69faddd3525c/
Log: Slight code clean up in _csv
diff --git a/lib_pypy/_csv.py b/lib_pypy/_csv.py
--- a/lib_pypy/_csv.py
+++ b/lib_pypy/_csv.py
@@ -363,9 +363,7 @@
(self.dialect.delimiter, self.dialect.quotechar))
elif self.state == self.EAT_CRNL:
- if c in '\r\n':
- pass
- else:
+ if c not in '\r\n':
raise Error("new-line character seen in unquoted field - "
"do you need to open the file "
"in universal-newline mode?")
More information about the pypy-commit
mailing list