From 9a074f330504584304e7e005f43f2b9fdf330d95 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 14 Mar 2019 18:22:55 +0100 Subject: [PATCH] Applying flake8 rules to some files --- lib/webhooks/forge/base_module_info.py | 12 +++--------- lib/webhooks/forge/cur_mod_release_info.py | 16 ++++------------ 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/lib/webhooks/forge/base_module_info.py b/lib/webhooks/forge/base_module_info.py index 5f81f78..f5c7742 100644 --- a/lib/webhooks/forge/base_module_info.py +++ b/lib/webhooks/forge/base_module_info.py @@ -10,26 +10,19 @@ 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 from .owner_info import ForgeOwnerInfo -__version__ = '0.1.0' +__version__ = '0.1.1' LOG = logging.getLogger(__name__) @@ -50,7 +43,8 @@ class BaseForgeModuleInfo(BaseForgeObject): self.owner = None super(BaseForgeModuleInfo, 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/cur_mod_release_info.py b/lib/webhooks/forge/cur_mod_release_info.py index c4bd10e..4a23587 100644 --- a/lib/webhooks/forge/cur_mod_release_info.py +++ b/lib/webhooks/forge/cur_mod_release_info.py @@ -10,32 +10,23 @@ 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 pp, to_bool from ..xlate import XLATOR from . import parse_forge_date -from . import ReleaseInfoError, ForgeModuleInfoError, ForgeModuleInfoTypeError -from . import BaseForgeObject from ..module_meta_info import ModuleMetadata -from .owner_info import ForgeOwnerInfo - from .mod_release_info import ModuleReleaseInfo from .base_module_info import BaseForgeModuleInfo -__version__ = '0.1.1' +__version__ = '0.1.2' LOG = logging.getLogger(__name__) @@ -69,7 +60,8 @@ class CurrentModuleReleaseInfo(ModuleReleaseInfo): self._validation_score = None super(CurrentModuleReleaseInfo, 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 -- 2.39.5