Lines Matching refs:self
55 def __init__(self):
62 def find_module(self, fullname, path=None):
82 def find_module(self, fullname, path):
98 if not hasattr(self, 'find_spec'):
100 found = self.find_spec(fullname, path)
103 def invalidate_caches(self):
119 def find_loader(self, fullname):
139 if not hasattr(self, 'find_spec'):
141 found = self.find_spec(fullname)
153 def invalidate_caches(self):
171 def get_data(self, path):
186 def is_package(self, fullname):
194 def get_code(self, fullname):
202 source = self.get_source(fullname)
205 return self.source_to_code(source)
208 def get_source(self, fullname):
240 def get_filename(self, fullname):
248 def get_code(self, fullname):
254 source = self.get_source(fullname)
258 path = self.get_filename(fullname)
260 return self.source_to_code(source)
262 return self.source_to_code(source, path)
293 def path_mtime(self, path):
295 if self.path_stats.__func__ is SourceLoader.path_stats:
297 return int(self.path_stats(path)['mtime'])
299 def path_stats(self, path):
306 if self.path_mtime.__func__ is SourceLoader.path_mtime:
308 return {'mtime': self.path_mtime(path)}
310 def set_data(self, path, data):