When running replace.py I get the following error:
File "scripts\replace.py", line 245, in __iter__ for old, new in self.replacements: TypeError: 'Replacement' object is not iterable <type 'exceptions.TypeError'>
When running replace.py I get the following error:
File "scripts\replace.py", line 245, in __iter__ for old, new in self.replacements: TypeError: 'Replacement' object is not iterable <type 'exceptions.TypeError'>
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
[FIX] Replace: Sharing exceptions and support XML | pywikibot/core | master | +116 -21 |
Oh I think I broke it in https://gerrit.wikimedia.org/r/175228/. I'm looking into it.
More information: Previously the replacements where are a list of tuples. Each tuple contained two values: a compiled regex and the string replacement. I've changed it into the Replacement class which is a bit more flexible, but obviously doesn't return the two values now like a tuple.
Change 177984 had a related patch set uploaded (by XZise):
[FIX] Replace: Sharing exceptions and support XML
Change 177984 merged by jenkins-bot:
[FIX] Replace: Sharing exceptions and support XML