Show More
@@ -119,7 +119,7 b' class _HTTPRangeHandler(urlreq.basehandl' | |||
|
119 | 119 | |
|
120 | 120 | def http_error_416(self, req, fp, code, msg, hdrs): |
|
121 | 121 | # HTTP's Range Not Satisfiable error |
|
122 |
raise _RangeError( |
|
|
122 | raise _RangeError('Requested Range Not Satisfiable') | |
|
123 | 123 | |
|
124 | 124 | |
|
125 | 125 | def build_opener(ui, authinfo): |
@@ -134,7 +134,7 b' def build_opener(ui, authinfo):' | |||
|
134 | 134 | |
|
135 | 135 | def __call__(self, path, mode=b'r', *args, **kw): |
|
136 | 136 | if mode not in (b'r', b'rb'): |
|
137 |
raise IOError( |
|
|
137 | raise IOError('Permission denied') | |
|
138 | 138 | f = b"/".join((self.base, urlreq.quote(path))) |
|
139 | 139 | return httprangereader(f, urlopener) |
|
140 | 140 |
General Comments 0
You need to be logged in to leave comments.
Login now