„Szerkesztő:Cherybot/archivebot hu.py” változatai közötti eltérés

Visszavontam 169.232.246.182 (vita) szerkesztését (oldid: 7492798) ナイスだけど、nem ez az eles
(Visszavontam 169.232.246.182 (vita) szerkesztését (oldid: 7492798) ナイスだけど、nem ez az eles)
if TM:
group0 = TM.group(0)
for a,bm in [
[u'január', 'January'],
[u'február', 'February'],
['december', 'December']
]:
group0rem = re.subcompile(a, b, group0m[0])
group0 = rem.sub(m[1], group0)
if not TM:
TM = re.search(r'(\d\d):(\d\d), (\d\d?) (\w+) (\d\d\d\d) \(.*?\)', line)
 
def size(self):
return len(self.header) + sum([t.size() for t in self.threads])
 
def update(self, summary, sortThreads = False):
if not archive:
return
if not self.force and not archive.startswith(self.Page.title+'/' == archive[:len(self.Page.title)+1] and not self.key_ok():
raise ArchiveSecurityError
if not self.archives.has_key(archive):
 
#Save the page itself
self.Page.headerrx = re.subcompile('(?s){{'+self.tpl+'\n.*?\n}}',self.attr2text(),self.Pagere.headerDOTALL)
self.Page.header = rx.sub(self.attr2text(),self.Page.header)
self.commentParams['count'] = self.archivedThreads
self.commentParams['archives'] = ', '.join(['[['+a.title+']]' for a in self.archives.values()])
if not self.commentParams['archives']:
self.commentParams['archives'] = '/dev/null'