Clean up module imports

Example:
* import lemur.common.utils -> from lemur.common import utils
* import sqlalchemy.types as types -> from sqlalchemy import types
This commit is contained in:
Marti Raudsepp 2018-06-27 13:56:39 +03:00 committed by Curtis Castrapel
parent 85285b5e62
commit 094b2fd5a9
1 changed files with 1 additions and 3 deletions

View File

@ -23,8 +23,6 @@ from sqlalchemy import event, Integer, ForeignKey, String, PassiveDefault, func,
from sqlalchemy_utils.types.arrow import ArrowType from sqlalchemy_utils.types.arrow import ArrowType
from werkzeug.utils import cached_property from werkzeug.utils import cached_property
import lemur.common.utils
from lemur.database import db from lemur.database import db
from lemur.extensions import sentry from lemur.extensions import sentry
@ -188,7 +186,7 @@ class Certificate(db.Model):
@cached_property @cached_property
def parsed_cert(self): def parsed_cert(self):
assert self.body, "Certificate body not set" assert self.body, "Certificate body not set"
return lemur.common.utils.parse_certificate(self.body) return utils.parse_certificate(self.body)
@property @property
def active(self): def active(self):