From 9035ac2b27171328c7b47aa43aa44400d1deb9d5 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 29 Jan 2010 18:51:27 +0000 Subject: [PATCH] Bug #302005 - Remove broken test code. (trunk r15208) svn path=/main/branches/2.1.7/; revision=15260 --- pym/portage/_sets/__init__.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pym/portage/_sets/__init__.py b/pym/portage/_sets/__init__.py index a4581cd43..2550de3ba 100644 --- a/pym/portage/_sets/__init__.py +++ b/pym/portage/_sets/__init__.py @@ -196,15 +196,3 @@ def load_default_config(settings, trees): setconfigpaths.append(os.path.join(settings["PORTAGE_CONFIGROOT"], USER_CONFIG_PATH, "sets.conf")) return SetConfig(setconfigpaths, settings, trees) - -# adhoc test code -if __name__ == "__main__": - import portage - sc = load_default_config(portage.settings, portage.db["/"]) - l, e = sc.getSets() - for x in l: - print(x+":") - print("DESCRIPTION = %s" % l[x].getMetadata("Description")) - for n in sorted(l[x].getAtoms()): - print("- "+n) - print() -- 2.26.2