<s> """<STR_LIT>""" <EOL> __version__ = '<STR_LIT>' <EOL> import wikipedia as pywikibot <EOL> import pagegenerators <EOL> import config <EOL> docuReplacements = { '<STR_LIT>' : pagegenerators . parameterHelp } <EOL> class TouchBot : <EOL> def __init__ ( self , generator , touch_redirects ) : <EOL> self . generator = generator <EOL> self . touch_redirects = touch_redirects <EOL> def run ( self ) : <EOL> for page in self . generator : <EOL> try : <EOL> text = page . get ( get_redirect = self . touch_redirects ) <EOL> page . put ( text , "<STR_LIT>" ) <EOL> except pywikibot . NoPage : <EOL> pywikibot . output ( u"<STR_LIT>" <EOL> % page . title ( asLink = True ) ) <EOL> except pywikibot . IsRedirectPage : <EOL> pywikibot . output ( u"<STR_LIT>" <EOL> % page . title ( asLink = True ) ) <EOL> except pywikibot . LockedPage : <EOL> pywikibot . output ( u"<STR_LIT>" <EOL> % page . title ( asLink = True ) ) <EOL> except pywikibot . PageNotSaved : <EOL> pywikibot . output ( u"<STR_LIT>" <EOL> % page . title ( asLink = True ) ) <EOL> def main ( * args ) : <EOL> config . cosmetic_changes = False <EOL> gen = None <EOL> genFactory = pagegenerators . GeneratorFactory ( ) <EOL> redirs = False <EOL> pageTitle = [ ] <EOL> for arg in pywikibot . handleArgs ( * args ) : <EOL> if genFactory . handleArg ( arg ) : <EOL> continue <EOL> if arg == '<STR_LIT>' : <EOL> redirs = True <EOL> else : <EOL> pageTitle . append ( arg ) <EOL> gen = genFactory . getCombinedGenerator ( ) <EOL> if not gen : <EOL> if pageTitle : <EOL> page = pywikibot . Page ( pywikibot . getSite ( ) , '<STR_LIT:U+0020>' . join ( pageTitle ) ) <EOL> gen = iter ( [ page ] ) <EOL> else : <EOL> pywikibot . showHelp ( ) <EOL> return <EOL> preloadingGen = pagegenerators . PreloadingGenerator ( gen ) <EOL> bot = TouchBot ( preloadingGen , redirs ) <EOL> bot . run ( ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> try : <EOL> main ( ) <EOL> finally : <EOL> pywikibot . stopme ( ) </s>
