[totem/gnome-3-30] opensubtitles: Work-around "wrong position" pylint warning
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-3-30] opensubtitles: Work-around "wrong position" pylint warning
- Date: Tue, 11 Dec 2018 16:14:04 +0000 (UTC)
commit 849ebb5ade347c4f281b3d13670cba4e92e89813
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 14 18:33:03 2018 +0100
opensubtitles: Work-around "wrong position" pylint warning
Import "from hash import hash_file" should be placed at the top of the
module (wrong-import-position)
src/plugins/opensubtitles/opensubtitles.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index a3f5edfd..2a61f7e6 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -6,8 +6,6 @@ import zlib
from os import sep
import gettext
-from hash import hash_file
-
import gi
gi.require_version('Peas', '1.0')
gi.require_version('Gtk', '3.0')
@@ -16,6 +14,8 @@ from gi.repository import GLib, GObject # pylint: disable=wrong-import-position
from gi.repository import Peas, Gtk, Gdk # pylint: disable=wrong-import-position,
from gi.repository import Gio, Pango, Totem # pylint: disable=wrong-import-position,no-name-in-module
+from hash import hash_file # pylint: disable=wrong-import-position
+
gettext.textdomain ("totem")
D_ = gettext.dgettext
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]