From f78c4f18d92e90c839bdfdf309fa7fdbc8b15c3d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 27 Apr 2006 09:16:45 +0000 Subject: Only use one global statement to avoid bogus python syntax warning. svn path=/main/trunk/; revision=3250 --- pym/portage.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- cgit v1.2.3-1-g7c22