[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH 4/9] Updated the imports for startnetwork.py.



From: "Darryl L. Pierce" <dpierce redhat com>

Explicitly imports the Label class from snack.
---
 src/virtManagerTui/startnetwork.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/virtManagerTui/startnetwork.py b/src/virtManagerTui/startnetwork.py
index 25896e1..3fb5665 100644
--- a/src/virtManagerTui/startnetwork.py
+++ b/src/virtManagerTui/startnetwork.py
@@ -18,7 +18,7 @@
 # MA  02110-1301, USA.  A copy of the GNU General Public License is
 # also available at http://www.gnu.org/copyleft/gpl.html.
 
-import snack
+from snack import Label
 from networklistconfigscreen import NetworkListConfigScreen
 
 LIST_PAGE   = 1
@@ -53,7 +53,7 @@ class StartNetworkConfigScreen(NetworkListConfigScreen):
     def get_start_network_page(self, screen):
         ignore = screen
         network = self.get_selected_network()
-        return [snack.Label("%s was successfully started." % network.get_name())]
+        return [Label("%s was successfully started." % network.get_name())]
 
 def StartNetwork():
     screen = StartNetworkConfigScreen()
-- 
1.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]