diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-12-11 08:33:28 -0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-12-11 08:33:28 -0200 |
commit | 766c4838fdabb50b6aa9a2594f091ec43750f691 (patch) | |
tree | 901dbe5e02cad55a9971445d24f81465b1305c07 /service/pixelated/controllers | |
parent | 7de1975fd3533ed3b2d5c46cddbaae65eac57175 (diff) |
optmizing python imports
Diffstat (limited to 'service/pixelated/controllers')
-rw-r--r-- | service/pixelated/controllers/__init__.py | 1 | ||||
-rw-r--r-- | service/pixelated/controllers/attachments_controller.py | 1 | ||||
-rw-r--r-- | service/pixelated/controllers/mails_controller.py | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/service/pixelated/controllers/__init__.py b/service/pixelated/controllers/__init__.py index 33da02b8..6bc8e7c2 100644 --- a/service/pixelated/controllers/__init__.py +++ b/service/pixelated/controllers/__init__.py @@ -29,6 +29,7 @@ def respond_json_deferred(entity, request, status_code=200): request.write(json_response) request.finish() + import json from home_controller import HomeController diff --git a/service/pixelated/controllers/attachments_controller.py b/service/pixelated/controllers/attachments_controller.py index d6d2f5e7..b3fed903 100644 --- a/service/pixelated/controllers/attachments_controller.py +++ b/service/pixelated/controllers/attachments_controller.py @@ -15,6 +15,7 @@ # along with Pixelated. If not, see <http://www.gnu.org/licenses/>. import io + import re from twisted.protocols.basic import FileSender from twisted.python.log import err diff --git a/service/pixelated/controllers/mails_controller.py b/service/pixelated/controllers/mails_controller.py index d84018dc..f990bcc2 100644 --- a/service/pixelated/controllers/mails_controller.py +++ b/service/pixelated/controllers/mails_controller.py @@ -15,6 +15,7 @@ # along with Pixelated. If not, see <http://www.gnu.org/licenses/>. import json + from pixelated.adapter.mail import InputMail from pixelated.controllers import respond_json |