~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/response.py

  • Committer: Vincent Ladeuil
  • Date: 2007-12-06 22:46:16 UTC
  • mto: (2929.3.16 https) (3097.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 3099.
  • Revision ID: v.ladeuil+lp@free.fr-20071206224616-wn217wlduoe4rdkh
Fix typos mentioned by spiv.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    )
31
31
 
32
32
 
33
 
# A RangeFile should respect the following grammar (simplified to outline the
 
33
# A RangeFile epxects the following grammar (simplified to outline the
34
34
# assumptions we rely upon).
35
35
 
36
36
# file: whole_file
89
89
        """Read the boundary headers defining a new range"""
90
90
        boundary_line = '\r\n'
91
91
        while boundary_line == '\r\n':
92
 
            # RFC2616 19.2 Additional CRLFs msy preceed the first boundary
 
92
            # RFC2616 19.2 Additional CRLFs may preceed the first boundary
93
93
            # string entity.
94
94
            # To be on the safe side we allow it before any boundary line
95
95
            boundary_line = self._file.readline()
122
122
            raise errors.InvalidHttpRange(self._path, content_range,
123
123
                                          "Malformed Content-Range header '%s'"
124
124
                                          % content_range)
125
 
        if rtype  != 'bytes':
 
125
        if rtype != 'bytes':
126
126
            raise errors.InvalidHttpRange(self._path, content_range,
127
127
                                          "Unsupported range type '%s'" % rtype)
128
128
        try: