[blivet:master 08/20] Suppress W0631 warning for abbr and prefix.

mulhern amulhern at redhat.com
Fri Apr 11 18:03:50 UTC 2014


The only way these variables could be undefined is if _xlated_prefixes()
is empty. But, _xlated_prefixes() will only be empty if both _binaryPrefix and
_decimalPrefix are empty, which is unlikely in the extreme.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/size.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/blivet/size.py b/blivet/size.py
index c0b4671..405a1b9 100644
--- a/blivet/size.py
+++ b/blivet/size.py
@@ -318,6 +318,7 @@ class Size(Decimal):
         # abbr and prefix are unicode objects so that lower/upper work correctly
         # Convert them to str before concatenating so that the return type is
         # str.
+        # pylint: disable=W0631
         if abbr:
             return retval + " " + abbr.encode("utf-8") + _("B")
         else:
-- 
1.8.3.1



More information about the anaconda-patches mailing list