[totem/wip/hadess/pylint-warnings: 6/11] opensubtitles: Work-around "wrong position" pylint warning



commit dab292d26bd37a454da80c037026fc35462a6941
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]