From: Zac Medico Date: Thu, 27 Apr 2006 09:16:45 +0000 (-0000) Subject: Only use one global statement to avoid bogus python syntax warning. X-Git-Tag: v2.1_pre10~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f78c4f18d92e90c839bdfdf309fa7fdbc8b15c3d;p=portage.git Only use one global statement to avoid bogus python syntax warning. svn path=/main/trunk/; revision=3250 --- diff --git a/pym/portage.py b/pym/portage.py index f832448d5..0a2ddaf5c 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2570,13 +2570,11 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, if not tree: writemsg("Warning: tree not specified to doebuild\n") tree = "porttree" - global actionmap_deps + global db, actionmap_deps if mydbapi is None: - global db mydbapi = db[myroot][tree].dbapi if vartree is None: - global db vartree = db[myroot]["vartree"] features = mysettings.features