mirror of
https://github.com/beetbox/beets.git
synced 2026-02-18 13:25:06 +01:00
Reorganize Gst import and version req in bpd
This avoids
```sh
PyGIWarning: Gst was imported without specifying a version first. Use
gi.require_version('Gst', '1.0') before import to ensure that the right
version gets loaded.
```
by silencing E401 import ordering warning
This commit is contained in:
parent
bb15829b17
commit
cb6efc4c22
1 changed files with 2 additions and 2 deletions
|
|
@ -29,9 +29,9 @@ from six.moves import urllib
|
|||
from beets import ui
|
||||
|
||||
import gi
|
||||
from gi.repository import GLib, Gst
|
||||
|
||||
gi.require_version('Gst', '1.0')
|
||||
from gi.repository import GLib, Gst # noqa ignore=E402
|
||||
|
||||
|
||||
Gst.init(None)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue