From: Zac Medico Date: Fri, 29 Jan 2010 18:51:27 +0000 (-0000) Subject: Bug #302005 - Remove broken test code. (trunk r15208) X-Git-Tag: v2.1.7.17~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9035ac2b27171328c7b47aa43aa44400d1deb9d5;p=portage.git Bug #302005 - Remove broken test code. (trunk r15208) svn path=/main/branches/2.1.7/; revision=15260 --- 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()