projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6132b4
)
Inside _showwarning(), import sys since otherwise it's None for some reason.
author
Zac Medico
<zmedico@gentoo.org>
Mon, 12 Jan 2009 08:06:27 +0000
(08:06 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 12 Jan 2009 08:06:27 +0000
(08:06 -0000)
(trunk r12364)
svn path=/main/branches/2.1.6/; revision=12435
pym/portage_compat_namespace.py
patch
|
blob
|
history
diff --git
a/pym/portage_compat_namespace.py
b/pym/portage_compat_namespace.py
index 6956ec2b31ab4ad833706bbec5f47113e602aebe..736b67833535b4374c8706cf9d47b1b2f21aae9f 100644
(file)
--- 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))