Use python set notation that is supported previous to Python 2.7

This commit is contained in:
Kyle Klein 2013-04-20 11:47:29 -07:00
commit 96693eb3d8

View file

@ -9,6 +9,7 @@ import logging
import datetime
import time
import re
from sets import Set
from subprocess import call
# Custom imports
@ -155,7 +156,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
utorrentClass.remove(inputHash)
time.sleep(5)
processCategories = {cpsCategory, sbCategory, hpCategory, mlCategory, gzCategory}
processCategories = Set([cpsCategory, sbCategory, hpCategory, mlCategory, gzCategory])
if inputCategory and not (inputCategory in processCategories): # no extra processign to be done... yet.
Logger.info("MAIN: No further processing to be done for category %s.", inputCategory)