##// END OF EJS Templates
vfs: add "open()" for newly added code paths which open files via vfs...
FUJIWARA Katsunori -
r19897:896a4568 default
parent child Browse files
Show More
@@ -217,6 +217,10 b' class abstractvfs(object):'
217 raise
217 raise
218 return ""
218 return ""
219
219
220 def open(self, path, mode="r", text=False, atomictemp=False):
221 self.open = self.__call__
222 return self.__call__(path, mode, text, atomictemp)
223
220 def read(self, path):
224 def read(self, path):
221 fp = self(path, 'rb')
225 fp = self(path, 'rb')
222 try:
226 try:
General Comments 0
You need to be logged in to leave comments. Login now