Fix pep8.. compliance

To be concordant with the coding styles fix pep8 compliance
This commit is contained in:
2017-03-08 18:38:15 +01:00
parent 9ba7d2e517
commit e16925197c
5 changed files with 70 additions and 60 deletions

View File

@@ -31,8 +31,8 @@ import mwparserfromhell as mwparser
import jogobot # noqa
from lib.mysqlred import MysqlRedPage, relationship
from lib.redfam import RedFam, RedFamParser
from sqlalchemy.orm.collections import attribute_mapped_collection
from lib.redfam import RedFamParser
class RedPage( MysqlRedPage ):
@@ -40,7 +40,7 @@ class RedPage( MysqlRedPage ):
Class for handling redundance discussion pages and archives
"""
#TODO POLYMORPHISM? of BASEClass
# TODO POLYMORPHISM? of BASEClass
redfams = relationship(
"RedFamParser", order_by=RedFamParser.famhash,
back_populates="redpage",
@@ -65,7 +65,7 @@ class RedPage( MysqlRedPage ):
revid=self._page._revid,
pagetitle=self._page.title(),
status=None
)
)
self.is_archive()
@@ -79,7 +79,7 @@ class RedPage( MysqlRedPage ):
@property
def page(self):
if not hasattr(self,"_page"):
if not hasattr(self, "_page"):
self._page = pywikibot.Page( pywikibot.Site(), self.pagetitle )
return self._page