equal
deleted
inserted
replaced
71 def __call__(self, path, mode="r", atomictemp=None): |
71 def __call__(self, path, mode="r", atomictemp=None): |
72 if mode not in ('r', 'rb'): |
72 if mode not in ('r', 'rb'): |
73 raise IOError('Permission denied') |
73 raise IOError('Permission denied') |
74 f = "/".join((self.base, urllib.quote(path))) |
74 f = "/".join((self.base, urllib.quote(path))) |
75 return httprangereader(f, urlopener) |
75 return httprangereader(f, urlopener) |
|
76 |
|
77 def join(self, path): |
|
78 if path: |
|
79 return os.path.join(self.base, path) |
|
80 else: |
|
81 return self.base |
76 |
82 |
77 return statichttpvfs |
83 return statichttpvfs |
78 |
84 |
79 class statichttppeer(localrepo.localpeer): |
85 class statichttppeer(localrepo.localpeer): |
80 def local(self): |
86 def local(self): |