Show More
@@ -229,6 +229,7 b' class opener(abstractopener):' | |||||
229 | if expand: |
|
229 | if expand: | |
230 | base = os.path.realpath(util.expandpath(base)) |
|
230 | base = os.path.realpath(util.expandpath(base)) | |
231 | self.base = base |
|
231 | self.base = base | |
|
232 | self.basesep = self.base + os.sep | |||
232 | self._setmustaudit(audit) |
|
233 | self._setmustaudit(audit) | |
233 | self.createmode = None |
|
234 | self.createmode = None | |
234 | self._trustnlink = None |
|
235 | self._trustnlink = None | |
@@ -331,9 +332,8 b' class opener(abstractopener):' | |||||
331 |
|
332 | |||
332 | def join(self, path): |
|
333 | def join(self, path): | |
333 | if path: |
|
334 | if path: | |
334 |
return |
|
335 | return path.startswith('/') and path or (self.basesep + path) | |
335 |
else |
|
336 | return self.base | |
336 | return self.base |
|
|||
337 |
|
337 | |||
338 | class filteropener(abstractopener): |
|
338 | class filteropener(abstractopener): | |
339 | '''Wrapper opener for filtering filenames with a function.''' |
|
339 | '''Wrapper opener for filtering filenames with a function.''' |
General Comments 0
You need to be logged in to leave comments.
Login now