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

@ -19,6 +19,10 @@ rencode module versions, so you should check that you are using the
same rencode version throughout your project.
"""
import struct
from threading import Lock
__version__ = '1.0.1'
__all__ = ['dumps', 'loads']
@ -62,9 +66,6 @@ __all__ = ['dumps', 'loads']
# (The rencode module is licensed under the above license as well).
#
import struct
from threading import Lock
# Default number of bits for serialized floats, either 32 or 64 (also a parameter for dumps()).
DEFAULT_FLOAT_BITS = 32