mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-27 12:12:22 +08:00
Rearrange the imports to meet the style guide
This also includes `from __future__ import absolute_import` in every file so that the imports are consistent in Python 2 and 3. The Python 2 tests fail without this.
This commit is contained in:
@@ -3,23 +3,24 @@
|
||||
""" SQLAlchemy Database models for the Flask app
|
||||
"""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import koji
|
||||
import re
|
||||
from __future__ import absolute_import
|
||||
from collections import OrderedDict, namedtuple
|
||||
from datetime import datetime
|
||||
import hashlib
|
||||
import json
|
||||
import re
|
||||
|
||||
import sqlalchemy
|
||||
import kobo.rpmlib
|
||||
import koji
|
||||
import sqlalchemy
|
||||
from sqlalchemy import func, and_
|
||||
from sqlalchemy.orm import lazyload
|
||||
from sqlalchemy.orm import validates, load_only
|
||||
|
||||
from module_build_service import db, log, get_url_for, conf
|
||||
from module_build_service.common.errors import UnprocessableEntity
|
||||
import module_build_service.common.messaging
|
||||
from module_build_service.common.utils import load_mmd
|
||||
from module_build_service.common.errors import UnprocessableEntity
|
||||
from module_build_service.scheduler import events
|
||||
|
||||
DEFAULT_MODULE_CONTEXT = "00000000"
|
||||
|
||||
Reference in New Issue
Block a user