Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r15501 - main/trunk/pym/portage
Date: Sun, 28 Feb 2010 20:33:05
Message-Id: E1Nlpoz-0004K0-Lf@stork.gentoo.org
1 Author: zmedico
2 Date: 2010-02-28 20:33:01 +0000 (Sun, 28 Feb 2010)
3 New Revision: 15501
4
5 Modified:
6 main/trunk/pym/portage/__init__.py
7 Log:
8 Remove unused imports.
9
10
11 Modified: main/trunk/pym/portage/__init__.py
12 ===================================================================
13 --- main/trunk/pym/portage/__init__.py 2010-02-28 14:19:16 UTC (rev 15500)
14 +++ main/trunk/pym/portage/__init__.py 2010-02-28 20:33:01 UTC (rev 15501)
15 @@ -14,21 +14,17 @@
16 try:
17 import sys
18 import codecs
19 - import copy
20 import errno
21 if not hasattr(errno, 'ESTALE'):
22 # ESTALE may not be defined on some systems, such as interix.
23 errno.ESTALE = -1
24 - import logging
25 import re
26 - import time
27 import types
28 try:
29 import cPickle as pickle
30 except ImportError:
31 import pickle
32
33 - import stat
34 try:
35 from subprocess import getstatusoutput as subprocess_getstatusoutput
36 except ImportError:
37 @@ -43,7 +39,6 @@
38 from StringIO import StringIO
39
40 import platform
41 - import warnings
42
43 # Temporarily delete these imports, to ensure that only the
44 # wrapped versions are imported by portage internals.
45 @@ -153,8 +148,6 @@
46 INVALID_ENV_FILE, CUSTOM_MIRRORS_FILE, CONFIG_MEMORY_FILE,\
47 INCREMENTALS, EAPI, MISC_SH_BINARY, REPO_NAME_LOC, REPO_NAME_FILE
48
49 - from portage.localization import _
50 -
51 except ImportError as e:
52 sys.stderr.write("\n\n")
53 sys.stderr.write("!!! Failed to complete portage imports. There are internal modules for\n")