jenkins-bot merged this change.
generate_family_file.py: Add __future__ import line to generated family file
Also fix other minor stylistic issues detected by flake8.
Change-Id: I804422ab7aa7e5732d72fb49b6aa4a419ca79f45
---
M generate_family_file.py
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/generate_family_file.py b/generate_family_file.py
index a93ff05..b57d1da 100755
--- a/generate_family_file.py
+++ b/generate_family_file.py
@@ -141,19 +141,22 @@
f.write("""
# -*- coding: utf-8 -*-
\"\"\"
-This family file was auto-generated by $Id$
+This family file was auto-generated by generate_family_file.py script.
+
Configuration parameters:
url = %(url)s
name = %(name)s
Please do not commit this to the Git repository!
\"\"\"
+from __future__ import absolute_import, unicode_literals
from pywikibot import family
from pywikibot.tools import deprecated
-class Family(family.Family):
+class Family(family.Family): # noqa: D101
+
name = '%(name)s'
langs = {
""".lstrip() % {'url': self.base_url, 'name': self.name})
To view, visit change 435627. To unsubscribe, visit settings.