From 0aca8ebfb15237e60effce06ccff2085516117f6 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 19 Jul 2014 02:23:19 +0200 Subject: Remove self-tests from all files --- module/common/packagetools.py | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'module/common/packagetools.py') diff --git a/module/common/packagetools.py b/module/common/packagetools.py index 6fd2d4a38..d5ab4d182 100644 --- a/module/common/packagetools.py +++ b/module/common/packagetools.py @@ -134,20 +134,3 @@ def parseNames(files): packs[name] = [url] return packs - - -if __name__ == "__main__": - from os.path import join - from pprint import pprint - - f = open(join("..", "..", "testlinks2.txt"), "rb") - urls = [(x.strip(), x.strip()) for x in f.readlines() if x.strip()] - f.close() - - print "Having %d urls." % len(urls) - - packs = parseNames(urls) - - pprint(packs) - - print "Got %d urls." % sum([len(x) for x in packs.itervalues()]) -- cgit v1.2.3