mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
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:
parent
3acaf29f1e
commit
382d108db2
10 changed files with 25 additions and 25 deletions
|
@ -1,8 +1,8 @@
|
|||
# coding=utf-8
|
||||
# code copied from http://www.doughellmann.com/PyMOTW/urllib2/
|
||||
|
||||
from email.generator import _make_boundary as make_boundary
|
||||
import itertools
|
||||
import mimetools
|
||||
import mimetypes
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@ class MultiPartForm(object):
|
|||
def __init__(self):
|
||||
self.form_fields = []
|
||||
self.files = []
|
||||
self.boundary = mimetools.choose_boundary()
|
||||
self.boundary = make_boundary()
|
||||
return
|
||||
|
||||
def get_content_type(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue