jenkins-bot merged this change.

View Change

Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
[doc] Place copyright part in front of import section

Change-Id: I515399c8bab151445e967f2b48337aaf72de1ebf
---
M generate_family_file.py
M pywikibot/comms/http.py
M pywikibot/comms/threadedhttp.py
M pywikibot/editor.py
M pywikibot/userinterfaces/gui.py
5 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/generate_family_file.py b/generate_family_file.py
index 0f235cd..34a1a09 100755
--- a/generate_family_file.py
+++ b/generate_family_file.py
@@ -1,14 +1,14 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""This script generates a family file from a given URL."""
-from __future__ import (absolute_import, division,
- print_function, unicode_literals)
#
# (C) Merlijn van Deen, 2010-2013
# (C) Pywikibot team, 2010-2018
#
# Distributed under the terms of the MIT license
#
+from __future__ import (absolute_import, division,
+ print_function, unicode_literals)

# system imports
import codecs
diff --git a/pywikibot/comms/http.py b/pywikibot/comms/http.py
index b62f338..41850eb 100644
--- a/pywikibot/comms/http.py
+++ b/pywikibot/comms/http.py
@@ -11,13 +11,13 @@
- URL-encoding all data
- Basic HTTP error handling
"""
-from __future__ import absolute_import, print_function, unicode_literals
-
#
# (C) Pywikibot team, 2007-2018
#
# Distributed under the terms of the MIT license.
#
+from __future__ import absolute_import, print_function, unicode_literals
+

__docformat__ = 'epytext'

diff --git a/pywikibot/comms/threadedhttp.py b/pywikibot/comms/threadedhttp.py
index 9dbaaf6..3953289 100644
--- a/pywikibot/comms/threadedhttp.py
+++ b/pywikibot/comms/threadedhttp.py
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
"""Http backend layer, formerly providing a httplib2 wrapper."""
-from __future__ import absolute_import, unicode_literals
-
#
# (C) Pywikibot team, 2007-2018
#
# Distributed under the terms of the MIT license.
#
+from __future__ import absolute_import, unicode_literals
+

__docformat__ = 'epytext'

diff --git a/pywikibot/editor.py b/pywikibot/editor.py
index 954e235..86220fd 100644
--- a/pywikibot/editor.py
+++ b/pywikibot/editor.py
@@ -1,14 +1,13 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Text editor class for your favourite editor."""
-from __future__ import absolute_import, unicode_literals
-
#
# (C) Gerrit Holl, 2004
# (C) Pywikibot team, 2004-2018
#
# Distributed under the terms of the MIT license.
#
+from __future__ import absolute_import, unicode_literals

import codecs
import os
diff --git a/pywikibot/userinterfaces/gui.py b/pywikibot/userinterfaces/gui.py
index 32b2d58..0f89bcd 100644
--- a/pywikibot/userinterfaces/gui.py
+++ b/pywikibot/userinterfaces/gui.py
@@ -4,8 +4,6 @@

Useful for editing the contents of an article.
"""
-from __future__ import absolute_import, unicode_literals
-
#
# (C) Rob W.W. Hooft, 2003
# (C) Daniel Herding, 2004
@@ -14,6 +12,7 @@
#
# Distributed under the terms of the MIT license.
#
+from __future__ import absolute_import, unicode_literals

import sys


To view, visit change 459397. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I515399c8bab151445e967f2b48337aaf72de1ebf
Gerrit-Change-Number: 459397
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)