mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 18:47:09 -07:00
Merge pull request #118 from nervling/python_2.6
Use python set notation that is supported previous to Python 2.7
This commit is contained in:
commit
8037fa4e5e
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue