From 8419facb8af9e8d92233de050e36790830c53b22 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 4 Apr 2019 02:46:25 -0400 Subject: [PATCH] PEP8 cleanups Signed-off-by: Roberto Rosario --- mayan/apps/acls/managers.py | 2 +- mayan/apps/common/tests/base.py | 1 - mayan/apps/document_states/models.py | 3 --- mayan/apps/sources/tests/test_models.py | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/mayan/apps/acls/managers.py b/mayan/apps/acls/managers.py index 914fc0a790..f625f40836 100644 --- a/mayan/apps/acls/managers.py +++ b/mayan/apps/acls/managers.py @@ -7,7 +7,7 @@ from django.core.exceptions import PermissionDenied from django.db import models from django.db.models import Q from django.utils.encoding import force_text -from django.utils.translation import ugettext, ugettext_lazy as _ +from django.utils.translation import ugettext from common.utils import return_attrib, return_related from permissions import Permission diff --git a/mayan/apps/common/tests/base.py b/mayan/apps/common/tests/base.py index 9a40f9f829..91a2b611b9 100644 --- a/mayan/apps/common/tests/base.py +++ b/mayan/apps/common/tests/base.py @@ -1,5 +1,4 @@ from __future__ import absolute_import, unicode_literals -import importlib from django.test import TestCase diff --git a/mayan/apps/document_states/models.py b/mayan/apps/document_states/models.py index d553c7201d..8262e1dcce 100644 --- a/mayan/apps/document_states/models.py +++ b/mayan/apps/document_states/models.py @@ -218,9 +218,6 @@ class WorkflowState(models.Model): except (TypeError, ValueError): self.completion = 0 - #if not self.completion: - # self.completion = 0 - if self.initial: self.workflow.states.all().update(initial=False) return super(WorkflowState, self).save(*args, **kwargs) diff --git a/mayan/apps/sources/tests/test_models.py b/mayan/apps/sources/tests/test_models.py index 4ea9f1a8c6..8f8c52b6bd 100644 --- a/mayan/apps/sources/tests/test_models.py +++ b/mayan/apps/sources/tests/test_models.py @@ -108,7 +108,7 @@ class EmailFilenameDecodingTestCase(BaseTestCase): def test_decode_email_zero_length_attachment(self): self._create_email_source() - self.source.store_body=False + self.source.store_body = False self.source.save() EmailBaseModel.process_message(