From cc06c2dc55f617079311a0cf4d6f755ba0eab8db Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Tue, 17 Aug 2010 17:50:56 +0200 Subject: Remove no longer needed code. --- pym/portage/tests/lint/test_compile_modules.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'pym') diff --git a/pym/portage/tests/lint/test_compile_modules.py b/pym/portage/tests/lint/test_compile_modules.py index 273979b89..f90a6665a 100644 --- a/pym/portage/tests/lint/test_compile_modules.py +++ b/pym/portage/tests/lint/test_compile_modules.py @@ -1,7 +1,6 @@ # Copyright 2009-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -import imp import itertools import stat @@ -31,7 +30,6 @@ class CompileModulesTestCase(TestCase): if not stat.S_ISREG(st.st_mode): continue do_compile = False - cfile = x if x[-3:] == '.py': do_compile = True else: @@ -44,11 +42,5 @@ class CompileModulesTestCase(TestCase): if line[:2] == '#!' and \ 'python' in line: do_compile = True - cfile += '.py' if do_compile: - try: - # Python >=3.2 - cfile = imp.cache_from_source(cfile) - except AttributeError: - cfile += (__debug__ and 'c' or 'o') py_compile.compile(x, cfile='/dev/null', doraise=True) -- cgit v1.2.3-1-g7c22