From 8b1c033fc412b59dace45fc375b4da92a6f9d356 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 6 Mar 2015 11:22:38 +0100 Subject: [PATCH] Remove old commented code. --- jedi/evaluate/compiled/__init__.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/jedi/evaluate/compiled/__init__.py b/jedi/evaluate/compiled/__init__.py index bc48b86e..bf62c643 100644 --- a/jedi/evaluate/compiled/__init__.py +++ b/jedi/evaluate/compiled/__init__.py @@ -333,29 +333,6 @@ def dotted_from_fs_path(fs_path, sys_path=None): def load_module(path, name): - """ - if not name: - name = os.path.basename(path) - name = name.rpartition('.')[0] # cut file type (normally .so) - - # sometimes there are endings like `_sqlite3.cpython-32mu` - name = re.sub(r'\..*', '', name) - - dot_path = [] - if path: - p = path - # if path is not in sys.path, we need to make a well defined import - # like `from numpy.core import umath.` - while p and p not in sys.path: - p, sep, mod = p.rpartition(os.path.sep) - dot_path.insert(0, mod.partition('.')[0]) - if p: - name = ".".join(dot_path) - path = p - else: - path = os.path.dirname(path) - - """ if path is not None: dotted_path = dotted_from_fs_path(path) else: