Cleanup unused modules and imports

* Ran code through PyFlakes
This commit is contained in:
JonnyWong16 2016-05-15 11:32:11 -07:00
commit cb8a5504f6
290 changed files with 45 additions and 78157 deletions

View file

@ -15,7 +15,6 @@
import base64
import datetime
import fnmatch
from functools import wraps
import hashlib
import imghdr
@ -25,7 +24,6 @@ import math
from operator import itemgetter
import os
import re
import shutil
import socket
import sys
import time
@ -35,7 +33,6 @@ from xml.dom import minidom
import xmltodict
import plexpy
import common
import logger
from plexpy.api2 import API2
@ -457,7 +454,7 @@ def parse_xml(unparsed=None):
try:
xml_parse = minidom.parseString(unparsed)
return xml_parse
except Exception, e:
except Exception as e:
logger.warn("Error parsing XML. %s" % e)
return []
except: