diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-07-19 02:23:19 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-07-19 02:23:19 +0200 |
commit | 0aca8ebfb15237e60effce06ccff2085516117f6 (patch) | |
tree | e3f28471f4f682f333d5f1b0725ec6572b9cb1bc /module/common/packagetools.py | |
parent | Move test stuff to common directory (diff) | |
download | pyload-0aca8ebfb15237e60effce06ccff2085516117f6.tar.xz |
Remove self-tests from all files
Diffstat (limited to 'module/common/packagetools.py')
-rw-r--r-- | module/common/packagetools.py | 17 |
1 files changed, 0 insertions, 17 deletions
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()]) |