[virt-tools-list] [PATCH] Remove redundant call of strip()

Radostin Stoyanov rstoyanov1 at gmail.com
Wed May 17 11:53:38 UTC 2017


Remove redundant call of the strip() function. It is already done in lines 1302 and 1303.

https://github.com/virt-manager/virt-manager/blob/master/virtManager/create.py#L1302
https://github.com/virt-manager/virt-manager/blob/master/virtManager/create.py#L1303

---
 virtManager/create.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtManager/create.py b/virtManager/create.py
index 90d1f787..275b6f39 100644
--- a/virtManager/create.py
+++ b/virtManager/create.py
@@ -1305,7 +1305,7 @@ class vmmCreate(vmmGObjectUI):
         if media and store_media:
             self.config.add_media_url(media)
 
-        return (media.strip(), extra.strip())
+        return (media, extra)
 
     def _get_config_import_path(self):
         return self.widget("install-import-entry").get_text()
-- 
2.13.0




More information about the virt-tools-list mailing list