debug-viewer: cleanup imports in plugins
Don't use * imports. Don't rely on package level imports.
This commit is contained in:
parent
032fccd7af
commit
3da48e7d61
@ -19,8 +19,11 @@
|
|||||||
|
|
||||||
"""GStreamer Debug Viewer file properties plugin."""
|
"""GStreamer Debug Viewer file properties plugin."""
|
||||||
|
|
||||||
from GstDebugViewer.Plugins import *
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from GstDebugViewer.Plugins import FeatureBase, PluginBase
|
||||||
|
|
||||||
|
from gettext import gettext as _
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
|
|
||||||
class FilePropertiesSentinel (object):
|
class FilePropertiesSentinel (object):
|
||||||
|
@ -22,8 +22,9 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from GstDebugViewer import Common, Data, GUI
|
from GstDebugViewer import Common, Data, GUI
|
||||||
from GstDebugViewer.Plugins import *
|
from GstDebugViewer.Plugins import FeatureBase, PluginBase, _N
|
||||||
|
|
||||||
|
from gettext import gettext as _
|
||||||
from gi.repository import GObject, GLib
|
from gi.repository import GObject, GLib
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
|
|
||||||
|
@ -23,8 +23,9 @@ import logging
|
|||||||
|
|
||||||
from GstDebugViewer import Common, Data
|
from GstDebugViewer import Common, Data
|
||||||
from GstDebugViewer.GUI.colors import LevelColorThemeTango, ThreadColorThemeTango
|
from GstDebugViewer.GUI.colors import LevelColorThemeTango, ThreadColorThemeTango
|
||||||
from GstDebugViewer.Plugins import *
|
from GstDebugViewer.Plugins import FeatureBase, PluginBase
|
||||||
|
|
||||||
|
from gettext import gettext as _
|
||||||
from gi.repository import GObject
|
from gi.repository import GObject
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
from gi.repository import Gdk
|
from gi.repository import Gdk
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
__all__ = ["_", "_N", "FeatureBase", "PluginBase"]
|
__all__ = ["_", "_N", "FeatureBase", "PluginBase"]
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
from gettext import gettext as _
|
|
||||||
|
|
||||||
def _N (s): return s
|
def _N (s): return s
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user