Bug #302005 - Remove broken test code.
authorZac Medico <zmedico@gentoo.org>
Sun, 24 Jan 2010 05:07:31 +0000 (05:07 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 24 Jan 2010 05:07:31 +0000 (05:07 -0000)
svn path=/main/trunk/; revision=15208

pym/portage/sets/__init__.py

index 59c3dbfd7498501af51971b90303d2e998404081..78f2628bd8ef8f09c91e62a89881b0d30d3c522a 100644 (file)
@@ -179,15 +179,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()