equal
deleted
inserted
replaced
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. |