Fix imports for Python 2

This commit is contained in:
JonnyWong16
2020-03-23 20:21:30 -07:00
parent 2ce5194156
commit 078685a2a3
36 changed files with 488 additions and 207 deletions

View File

@@ -27,8 +27,12 @@ import collections
import requests
import plexpy
from plexpy import lock
from plexpy import logger
if plexpy.PYTHON_VERSION < 3:
import lock
import logger
else:
from plexpy import lock
from plexpy import logger
# Dictionary with last request times, for rate limiting.