[virt-tools-list] [PATCH 09/17] progress: Resolve E714
Radostin Stoyanov
rstoyanov1 at gmail.com
Thu Oct 25 12:37:50 UTC 2018
E714: test for object identity should be ‘is not’
Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
---
virtinst/progress.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/virtinst/progress.py b/virtinst/progress.py
index ce763de3..0d0c372f 100644
--- a/virtinst/progress.py
+++ b/virtinst/progress.py
@@ -115,7 +115,7 @@ class BaseMeter:
# size = None ######### TESTING
self.size = size
- if not size is None:
+ if size is not None:
self.fsize = format_number(size) + 'B'
if now is None:
--
2.17.2
More information about the virt-tools-list
mailing list