"SyntaxWarning: name 'portage' is assigned to before global
declaration" messages produced by earlier python-2.4.
svn path=/main/trunk/; revision=9004
sys.exit(os.EX_USAGE)
os.environ["ROOT"] = sys.argv[2]
+ global portage
+
# First import the main portage module without legacy globals since it
# is almost certain to succeed in that case. This provides access to
# the portage.exception namespace which is needed for later exception
import portage
del os.environ["PORTAGE_LEGACY_GLOBALS"]
try:
- global portage
try:
reload(portage)
except ImportError: