From 278a200d9e4de3e99611c7e2bc31684674b34b5c Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 14 Mar 2019 18:32:07 +0100 Subject: [PATCH] Applying flake8 rules to some files --- lib/webhooks/forge/mod_info.py | 12 +++--------- lib/webhooks/forge/mod_release_info.py | 14 ++++---------- lib/webhooks/forge/mod_release_list.py | 14 ++++---------- lib/webhooks/forge/owner_info.py | 12 +----------- 4 files changed, 12 insertions(+), 40 deletions(-) diff --git a/lib/webhooks/forge/mod_info.py b/lib/webhooks/forge/mod_info.py index aaf4535..c64bcea 100644 --- a/lib/webhooks/forge/mod_info.py +++ b/lib/webhooks/forge/mod_info.py @@ -10,26 +10,20 @@ from __future__ import absolute_import # Standard modules import logging -import re import copy import warnings -import time import datetime import collections # Third party modules import requests -import pytz # Own modules -from fb_tools.common import pp, to_str, to_bool, is_sequence -from fb_tools.obj import FbBaseObjectError, FbBaseObject +from fb_tools.common import pp, to_bool from ..xlate import XLATOR -from ..base_module_info import BaseModuleInfoError, BaseModuleInfo - -from ..module_meta_info import ModuleMetadata +from ..base_module_info import BaseModuleInfo from . import parse_forge_date, ForgeModuleInfoError @@ -39,7 +33,7 @@ from .cur_mod_release_info import CurrentModuleReleaseInfo from .owner_info import ForgeOwnerInfo -__version__ = '0.2.0' +__version__ = '0.2.1' LOG = logging.getLogger(__name__) diff --git a/lib/webhooks/forge/mod_release_info.py b/lib/webhooks/forge/mod_release_info.py index 59bfeca..e6ef8b9 100644 --- a/lib/webhooks/forge/mod_release_info.py +++ b/lib/webhooks/forge/mod_release_info.py @@ -10,24 +10,17 @@ from __future__ import absolute_import # Standard modules import logging -import re -import copy -import warnings -import time import datetime -import collections - # Own modules -from fb_tools.common import pp, to_str, to_bool, is_sequence +from fb_tools.common import to_bool from ..xlate import XLATOR from . import parse_forge_date -from . import ReleaseInfoError, ForgeModuleInfoError, ForgeModuleInfoTypeError from . import BaseForgeObject -__version__ = '0.1.0' +__version__ = '0.1.1' LOG = logging.getLogger(__name__) @@ -52,7 +45,8 @@ class ModuleReleaseInfo(BaseForgeObject): self._release_version = None super(ModuleReleaseInfo, self).__init__( - appname=appname, verbose=verbose, version=version, base_dir=base_dir, initialized=False) + appname=appname, verbose=verbose, version=version, + base_dir=base_dir, initialized=False) if initialized is not None: self.initialized = initialized diff --git a/lib/webhooks/forge/mod_release_list.py b/lib/webhooks/forge/mod_release_list.py index b9118de..37e7946 100644 --- a/lib/webhooks/forge/mod_release_list.py +++ b/lib/webhooks/forge/mod_release_list.py @@ -10,24 +10,17 @@ from __future__ import absolute_import # Standard modules import logging -import re import copy -import warnings -import time -import datetime import collections # Own modules -from fb_tools.common import pp, to_str, to_bool, is_sequence -from fb_tools.obj import FbBaseObjectError, FbBaseObject +from fb_tools.obj import FbBaseObject from ..xlate import XLATOR -from ..base_module_info import BaseModuleInfoError, BaseModuleInfo - from .mod_release_info import ModuleReleaseInfo -__version__ = '0.1.0' +__version__ = '0.1.1' LOG = logging.getLogger(__name__) @@ -48,7 +41,8 @@ class ModuleReleaseList(collections.MutableSequence, FbBaseObject): self._list = [] super(ModuleReleaseList, self).__init__( - appname=appname, verbose=verbose, version=version, base_dir=base_dir, initialized=False) + appname=appname, verbose=verbose, version=version, + base_dir=base_dir, initialized=False) for release in releases: self.append(release) diff --git a/lib/webhooks/forge/owner_info.py b/lib/webhooks/forge/owner_info.py index 201a6e7..daba02a 100644 --- a/lib/webhooks/forge/owner_info.py +++ b/lib/webhooks/forge/owner_info.py @@ -10,24 +10,14 @@ from __future__ import absolute_import # Standard modules import logging -import re -import copy -import warnings -import time -import datetime -import collections - # Own modules -from fb_tools.common import pp, to_str, to_bool, is_sequence from ..xlate import XLATOR -from . import parse_forge_date -from . import ReleaseInfoError, ForgeModuleInfoError, ForgeModuleInfoTypeError from . import BaseForgeObject -__version__ = '0.2.0' +__version__ = '0.2.1' LOG = logging.getLogger(__name__) -- 2.39.5