From 96693eb3d872d8aad6650833a810f838360da284 Mon Sep 17 00:00:00 2001 From: Kyle Klein Date: Sat, 20 Apr 2013 11:47:29 -0700 Subject: [PATCH] Use python set notation that is supported previous to Python 2.7 --- TorrentToMedia.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index 940af1cb..5a9a5718 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -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)