NetworkManager/examples/python/gi
Thomas Haller db6f8315e5 python: use gi.require_version() in generate-setting-docs.py and examples
gi now emits a warning when not loading a specific library
version [1]:

  ./generate-setting-docs.py:21: PyGIWarning: NM was imported without specifying a version first. Use gi.require_version(NM, 1.0) before import to ensure that the right version gets loaded.
    from gi.repository import NM, GObject

Seems require_version() is reasonably old to just always use it without
breaking on older versions [2].

[1] Related: https://bugzilla.gnome.org/show_bug.cgi?id=727379
[2] https://git.gnome.org/browse/pygobject/commit/?id=76758efb6579752237a0dc4d56cf9518de6c6e55

(cherry picked from commit 8d1233e67e)
2015-11-11 15:47:13 +01:00
..
add_connection.py python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 15:47:13 +01:00
device-state-ip4config.py python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 15:47:13 +01:00
firewall-zone.py python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 15:47:13 +01:00
get-active-connections.py python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 15:47:13 +01:00
get_ips.py python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 15:47:13 +01:00
list-connections.py python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 15:47:13 +01:00
Makefile.am examples: add Python D-Bus and GI examples for updating IPv4 setting method 2014-06-10 16:20:35 -05:00
show-wifi-networks.py python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 15:47:13 +01:00
update-ip4-method.py python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 15:47:13 +01:00