---
blivet/size.py | 1 +
blivet/util.py | 2 ++
2 files changed, 3 insertions(+)
diff --git a/blivet/size.py b/blivet/size.py
index fd2662e..95ba265 100644
--- a/blivet/size.py
+++ b/blivet/size.py
@@ -205,6 +205,7 @@ def parseSpec(spec):
# No English match found, try localized size specs.
if six.PY2:
+ # pylint: disable=undefined-variable
if isinstance(specifier, unicode):
spec_local = specifier
else:
diff --git a/blivet/util.py b/blivet/util.py
index 286c871..cedc83a 100644
--- a/blivet/util.py
+++ b/blivet/util.py
@@ -435,6 +435,7 @@ def stringize(inputstr):
encoded using utf-8.
"""
if six.PY2:
+ # pylint: disable=undefined-variable
if isinstance(inputstr, unicode):
inputstr = inputstr.encode('utf-8')
@@ -456,6 +457,7 @@ def unicodeize(inputstr):
be correctly passed through.
"""
if six.PY2:
+ # pylint: disable=undefined-variable
return unicode(inputstr)
else:
return str(inputstr)
--
2.2.2