summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/lint
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-08-17 17:50:56 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-08-17 17:50:56 +0200
commitcc06c2dc55f617079311a0cf4d6f755ba0eab8db (patch)
treec6b360a7c4c23cb9b6292ebd955b4fac0af2f89e /pym/portage/tests/lint
parent080bd63355b3a73bce92a7bf23c51e192209bd48 (diff)
downloadportage-cc06c2dc55f617079311a0cf4d6f755ba0eab8db.tar.gz
portage-cc06c2dc55f617079311a0cf4d6f755ba0eab8db.tar.bz2
portage-cc06c2dc55f617079311a0cf4d6f755ba0eab8db.zip
Remove no longer needed code.
Diffstat (limited to 'pym/portage/tests/lint')
-rw-r--r--pym/portage/tests/lint/test_compile_modules.py8
1 files changed, 0 insertions, 8 deletions
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)