jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] ignore .svn folder and its subdirectories ......................................................................
[FIX] ignore .svn folder and its subdirectories
Change-Id: I5d2332cc3ea6b5f1f96fa56ecbd61fdb8e3ebc67 --- M maintenance/i18n_from_json.py 1 file changed, 3 insertions(+), 2 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/maintenance/i18n_from_json.py b/maintenance/i18n_from_json.py index a4891a6..1008e1c 100644 --- a/maintenance/i18n_from_json.py +++ b/maintenance/i18n_from_json.py @@ -70,8 +70,9 @@ if self.source is None: self.confirm = False source = os.path.join('..', 'i18n') - for root, dirs, files in os.walk(source): - for d in dirs: + root, dirs, files = next(os.walk(source)) + for d in dirs: + if not d.startswith('.'): self.treat(d) else: self.treat(self.source)
pywikibot-commits@lists.wikimedia.org