examples: remove unused imports from python examples

This commit is contained in:
Thomas Haller
2020-05-06 23:16:34 +02:00
parent a5614dc469
commit 41a7a26259
12 changed files with 7 additions and 13 deletions

View File

@@ -10,8 +10,6 @@ import gi
gi.require_version('NM', '1.0')
from gi.repository import GLib, NM
import os
###############################################################################
def usage():

View File

@@ -4,7 +4,6 @@
# Copyright (C) 2016 Red Hat, Inc.
#
import sys
import gi
gi.require_version('NM', '1.0')
from gi.repository import GLib, NM

View File

@@ -8,7 +8,7 @@
import gi
gi.require_version('NM', '1.0')
from gi.repository import GLib, NM
from gi.repository import NM
if __name__ == "__main__":
client = NM.Client.new(None)

View File

@@ -8,7 +8,7 @@
import gi
gi.require_version('NM', '1.0')
from gi.repository import GLib, NM
from gi.repository import NM
if __name__ == "__main__":
client = NM.Client.new(None)

View File

@@ -6,7 +6,7 @@
import gi
gi.require_version('NM', '1.0')
from gi.repository import GLib, NM
from gi.repository import NM
if __name__ == "__main__":
client = NM.Client.new(None)

View File

@@ -7,7 +7,7 @@
import sys, socket
import gi
gi.require_version('NM', '1.0')
from gi.repository import GLib, NM
from gi.repository import NM
#
# This example shows how to get addresses, routes and DNS information

View File

@@ -5,7 +5,6 @@
#
import sys
import re
import gi
gi.require_version('NM', '1.0')

View File

@@ -5,7 +5,6 @@
#
import sys
import re
import gi
gi.require_version('NM', '1.0')

View File

@@ -58,7 +58,6 @@
# nm-wg-set id "$PROFILE" $WG_ARGS
import sys
import re
import os
import gi