Remove relativ imports as we don't are in a package anymore
This commit is contained in:
@@ -33,7 +33,7 @@ from datetime import datetime
|
|||||||
import pywikibot
|
import pywikibot
|
||||||
|
|
||||||
import jogobot
|
import jogobot
|
||||||
from .mysqlred import MysqlRedFam
|
from mysqlred import MysqlRedFam
|
||||||
|
|
||||||
|
|
||||||
class RedFam:
|
class RedFam:
|
||||||
|
|||||||
11
redpage.py
11
redpage.py
@@ -27,8 +27,8 @@ Provides a class for handling redundance discussion pages and archives
|
|||||||
|
|
||||||
import pywikibot # noqa
|
import pywikibot # noqa
|
||||||
|
|
||||||
from .mysqlred import MysqlRedPage
|
from mysqlred import MysqlRedPage
|
||||||
from .redfam import RedFamParser
|
from redfam import RedFamParser
|
||||||
|
|
||||||
|
|
||||||
class RedPage:
|
class RedPage:
|
||||||
@@ -94,7 +94,7 @@ class RedPage:
|
|||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def parse( self ):
|
def parse( self ): # noqa
|
||||||
"""
|
"""
|
||||||
Handles the parsing process
|
Handles the parsing process
|
||||||
"""
|
"""
|
||||||
@@ -158,9 +158,8 @@ class RedPage:
|
|||||||
ending = RedFamParser.is_ending2( text_lines[ j ] )
|
ending = RedFamParser.is_ending2( text_lines[ j ] )
|
||||||
|
|
||||||
# Create the RedFam object
|
# Create the RedFam object
|
||||||
red_fam = RedFamParser( fam_heading, self.page._pageid,
|
RedFamParser( fam_heading, self.page._pageid,
|
||||||
self.is_archive(), beginning,
|
self.is_archive(), beginning, ending )
|
||||||
ending )
|
|
||||||
|
|
||||||
# Increment line counter
|
# Increment line counter
|
||||||
i += 1
|
i += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user