summaryrefslogtreecommitdiff
path: root/service/pixelated/support
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-12-11 08:33:28 -0200
committerDuda Dornelles <ddornell@thoughtworks.com>2014-12-11 08:33:28 -0200
commit766c4838fdabb50b6aa9a2594f091ec43750f691 (patch)
tree901dbe5e02cad55a9971445d24f81465b1305c07 /service/pixelated/support
parent7de1975fd3533ed3b2d5c46cddbaae65eac57175 (diff)
optmizing python imports
Diffstat (limited to 'service/pixelated/support')
-rw-r--r--service/pixelated/support/date.py2
-rw-r--r--service/pixelated/support/encrypted_file_storage.py3
-rw-r--r--service/pixelated/support/ext_protobuf.py4
-rw-r--r--service/pixelated/support/ext_sqlcipher.py4
4 files changed, 8 insertions, 5 deletions
diff --git a/service/pixelated/support/date.py b/service/pixelated/support/date.py
index 8a2daaf0..e7cdbb30 100644
--- a/service/pixelated/support/date.py
+++ b/service/pixelated/support/date.py
@@ -14,8 +14,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
import datetime
-import dateutil.parser
+import dateutil.parser
from dateutil.tz import tzlocal
diff --git a/service/pixelated/support/encrypted_file_storage.py b/service/pixelated/support/encrypted_file_storage.py
index 2fae9942..c6549c06 100644
--- a/service/pixelated/support/encrypted_file_storage.py
+++ b/service/pixelated/support/encrypted_file_storage.py
@@ -15,10 +15,9 @@
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
import io
-import os
+import os
from whoosh.filedb.filestore import FileStorage
-
from whoosh.filedb.structfile import StructFile, BufferFile
from cryptography.fernet import Fernet
from whoosh.util import random_name
diff --git a/service/pixelated/support/ext_protobuf.py b/service/pixelated/support/ext_protobuf.py
index 8a8e05e6..337829ba 100644
--- a/service/pixelated/support/ext_protobuf.py
+++ b/service/pixelated/support/ext_protobuf.py
@@ -15,9 +15,11 @@
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function
-import protobuf.socketrpc.server
from sys import platform as _platform
+import protobuf.socketrpc.server
+
+
# protobuf throws a lot of 'Socket is not connected' exceptions on OSX but they are not an issue.
# refer too https://code.google.com/p/protobuf-socket-rpc/issues/detail?id=10 and
diff --git a/service/pixelated/support/ext_sqlcipher.py b/service/pixelated/support/ext_sqlcipher.py
index bd01e610..fae1df72 100644
--- a/service/pixelated/support/ext_sqlcipher.py
+++ b/service/pixelated/support/ext_sqlcipher.py
@@ -14,9 +14,11 @@
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
-import leap.soledad.client.sqlcipher
from sys import platform as _platform
+import leap.soledad.client.sqlcipher
+
+
# WAL is breaking for the debian sqlcipher package so we need to disable it
# refer to https://leap.se/code/issues/5562