Optimize imports

* PEP8: Fix module level import not at top of file
* Remove unused imports
* Remove simplejson
* Replace mimetools with email
This commit is contained in:
Labrys 2016-06-04 22:10:26 -04:00
commit 382d108db2
10 changed files with 25 additions and 25 deletions

View file

@ -2,10 +2,13 @@
# Copyright (c) 2008-2013 Erik Svensson <erik.public@gmail.com>
# Licensed under the MIT license.
import socket, datetime, logging, constants
import constants
import datetime
import logging
import socket
from collections import namedtuple
from constants import LOGGER
from constants import LOGGER
from six import string_types, iteritems
UNITS = ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB']