1
0
mirror of https://github.com/moparisthebest/SickRage synced 2025-01-05 19:08:02 -05:00

Fixed ImportError: cannot import name OrderedDict

This commit is contained in:
echel0n 2014-06-24 17:40:38 -07:00
parent 6c3f34fd8d
commit 7d2f7c8233

View File

@ -15,10 +15,8 @@
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with SickRage. If not, see <http://www.gnu.org/licenses/>. # along with SickRage. If not, see <http://www.gnu.org/licenses/>.
from collections import OrderedDict
import re import re
import time
import datetime import datetime
import os.path import os.path
import threading import threading
@ -27,7 +25,6 @@ import sickbeard
from sickbeard import logger, helpers, scene_numbering, common from sickbeard import logger, helpers, scene_numbering, common
from dateutil import parser from dateutil import parser
from sickbeard.common import cpu_presets
nameparser_lock = threading.Lock() nameparser_lock = threading.Lock()
@ -140,7 +137,7 @@ class NameParser(object):
elif self.showObj and not self.showObj.is_anime and not self.showObj.is_sports: elif self.showObj and not self.showObj.is_anime and not self.showObj.is_sports:
regexMode = self.NORMAL_REGEX regexMode = self.NORMAL_REGEX
self.compiled_regexes = OrderedDict() self.compiled_regexes = {}
self._compile_regexes(regexMode) self._compile_regexes(regexMode)
matches = [] matches = []