diff options
-rw-r--r-- | pym/portage_compat_namespace.py | 1 |
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)) |