mercurial/byterange.py
branchstable
changeset 14764 a7d5816087a9
parent 10905 13a1b2fb7ef2
child 14947 3aa34005a73d
equal deleted inserted replaced
14763:b071cd58af50 14764:a7d5816087a9
    62 
    62 
    63     def http_error_416(self, req, fp, code, msg, hdrs):
    63     def http_error_416(self, req, fp, code, msg, hdrs):
    64         # HTTP's Range Not Satisfiable error
    64         # HTTP's Range Not Satisfiable error
    65         raise RangeError('Requested Range Not Satisfiable')
    65         raise RangeError('Requested Range Not Satisfiable')
    66 
    66 
    67 class RangeableFileObject:
    67 class RangeableFileObject(object):
    68     """File object wrapper to enable raw range handling.
    68     """File object wrapper to enable raw range handling.
    69     This was implemented primarilary for handling range
    69     This was implemented primarilary for handling range
    70     specifications for file:// urls. This object effectively makes
    70     specifications for file:// urls. This object effectively makes
    71     a file object look like it consists only of a range of bytes in
    71     a file object look like it consists only of a range of bytes in
    72     the stream.
    72     the stream.