https://bugzilla.wikimedia.org/show_bug.cgi?id=68503
Bug ID: 68503 Summary: replacementdile for replace.py Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jan.dudik@gmail.com Web browser: --- Mobile Platform: ---
in compat: replace.py -pagesgenerator -replacementfile:replace.txt
this does not work for core, the whole code part is missing here:
elif arg.startswith('-replacementfile'): if len(arg) == len('-replacementfile'): replacefile = pywikibot.input( u'Please enter the filename to read replacements from:') else: replacefile = arg[len('-replacementfile')+1:] try: commandline_replacements.extend( [x.lstrip(u'\uFEFF').rstrip('\r\n') for x in codecs.open(replacefile, 'r', 'utf-8')]) except IOError: raise pywikibot.Error( '\n%s cannot be opened. Try again :-)' % replacefile)
https://bugzilla.wikimedia.org/show_bug.cgi?id=68503
JAn Dudík jan.dudik@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal Blocks| |55880 Summary|replacementdile for |replacementfile for |replace.py |replace.py Severity|normal |enhancement
https://bugzilla.wikimedia.org/show_bug.cgi?id=68503
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com Component|General |Other scripts
pywikipedia-bugs@lists.wikimedia.org