[PATCH] Remove redundant call of strip()

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

 



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

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux