~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/basicio.py

  • Committer: Martin Pool
  • Date: 2005-11-24 06:06:34 UTC
  • mto: (1185.33.49 bzr.dev)
  • mto: This revision was merged to the branch mainline in revision 1512.
  • Revision ID: mbp@sourcefrog.net-20051124060634-fa1e3a5a871ec5e7
Addition test and bugfix for basic_io escaped strings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
            while True:
202
202
                assert valpart[-1] == '\n'
203
203
                len_valpart = len(valpart)
204
 
                if len_valpart and valpart[-2] == '"':
 
204
                if len_valpart >= 2 and valpart[-2] == '"':
205
205
                    # is this a real terminating doublequote, or is it escaped
206
206
                    # by a preceding backslash that is not itself escaped?
207
207
                    i = 3