[pypy-commit] pypy default: Attempt to fix translation (sorry)

arigo noreply at buildbot.pypy.org
Wed Sep 26 10:15:11 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r57594:1a7ac972a82a
Date: 2012-09-26 10:14 +0200
http://bitbucket.org/pypy/pypy/changeset/1a7ac972a82a/

Log:	Attempt to fix translation (sorry)

diff --git a/pypy/module/_csv/interp_reader.py b/pypy/module/_csv/interp_reader.py
--- a/pypy/module/_csv/interp_reader.py
+++ b/pypy/module/_csv/interp_reader.py
@@ -67,7 +67,8 @@
                 w_line = space.next(self.w_iter)
             except OperationError, e:
                 if e.match(space, space.w_StopIteration):
-                    if (state != START_RECORD and state != EAT_CRNL and
+                    if (field_builder is not None and
+                            state != START_RECORD and state != EAT_CRNL and
                             (len(field_builder.build()) > 0 or
                              state == IN_QUOTED_FIELD)):
                         if dialect.strict:


More information about the pypy-commit mailing list