summaryrefslogtreecommitdiffstats
path: root/pym/portage_compat_namespace.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-29 03:05:07 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-29 03:05:07 +0000
commitb7cd3e67423d50c8e4204148ce7d65daddf52b72 (patch)
tree15fdbd926f6f9c97d642eb5e0a788d779c574c4a /pym/portage_compat_namespace.py
parente14eb85f8495e4a1e273ef17ad10867c353a76bf (diff)
downloadportage-b7cd3e67423d50c8e4204148ce7d65daddf52b72.tar.gz
portage-b7cd3e67423d50c8e4204148ce7d65daddf52b72.tar.bz2
portage-b7cd3e67423d50c8e4204148ce7d65daddf52b72.zip
Inside _showwarning(), import sys since otherwise it's None for some reason.
svn path=/main/trunk/; revision=12364
Diffstat (limited to 'pym/portage_compat_namespace.py')
-rw-r--r--pym/portage_compat_namespace.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage_compat_namespace.py b/pym/portage_compat_namespace.py
index 6956ec2b3..736b67833 100644
--- a/pym/portage_compat_namespace.py
+++ b/pym/portage_compat_namespace.py
@@ -33,6 +33,7 @@ except (ImportError, AttributeError):
def _showwarning(message, category, filename, lineno, file=None, line=None):
if file is None:
+ import sys
file = sys.stderr
try:
file.write("%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message))