Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def read(self, path):
- if path is None:
- path = self.opfname
- path = os.path.join(self.rootdir, path)
- try:
- with open(urlunquote(path), 'rb') as f:
- return f.read()
- except:
- with open(path,'rb') as f:
- return f.read()
- # Pype: how about files that really hold %2f in their name?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement