examples: remove unused imports from python examples
This commit is contained in:
@@ -10,8 +10,6 @@ import gi
|
||||
gi.require_version('NM', '1.0')
|
||||
from gi.repository import GLib, NM
|
||||
|
||||
import os
|
||||
|
||||
###############################################################################
|
||||
|
||||
def usage():
|
||||
|
@@ -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
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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
|
||||
|
@@ -5,7 +5,6 @@
|
||||
#
|
||||
|
||||
import sys
|
||||
import re
|
||||
|
||||
import gi
|
||||
gi.require_version('NM', '1.0')
|
||||
|
@@ -5,7 +5,6 @@
|
||||
#
|
||||
|
||||
import sys
|
||||
import re
|
||||
|
||||
import gi
|
||||
gi.require_version('NM', '1.0')
|
||||
|
@@ -58,7 +58,6 @@
|
||||
# nm-wg-set id "$PROFILE" $WG_ARGS
|
||||
|
||||
import sys
|
||||
import re
|
||||
import os
|
||||
|
||||
import gi
|
||||
|
Reference in New Issue
Block a user