mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Require library version for GObject introspection
Specify the version of a library before importing it using GObject introspection. Mainly to avoid warnings with recent version of pygobject. Closes #247.
This commit is contained in:
1 parent
4ecc416f3a
commit
2ef22ec1b4
3 files changed
+8
No files matched your search
@@ -20,6 +20,8 @@ from django.core import validators
|
||||
from gettext import gettext as _
|
||||
|
||||
from plinth import network
|
||||
import gi
|
||||
gi.require_version('NM', '1.0')
|
||||
from gi.repository import NM as nm
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user