From 64516f1b455e269c8f34301890e22e90aa268e63 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 2 Jul 2020 00:59:36 +0200 Subject: [PATCH] Remove DummyFile --- jedi/_compatibility.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/jedi/_compatibility.py b/jedi/_compatibility.py index 7a2a577d..36b73c24 100644 --- a/jedi/_compatibility.py +++ b/jedi/_compatibility.py @@ -25,18 +25,6 @@ is_py35 = is_py3 and sys.version_info[1] >= 5 py_version = int(str(sys.version_info[0]) + str(sys.version_info[1])) -class DummyFile(object): - def __init__(self, loader, string): - self.loader = loader - self.string = string - - def read(self): - return self.loader.get_source(self.string) - - def close(self): - del self.loader - - def find_module_py34(string, path=None, full_name=None, is_global_search=True): spec = None loader = None