From 498a2c6873f68cb0d099dc720fcdaec419a0bd92 Mon Sep 17 00:00:00 2001 From: twangboy Date: Tue, 6 Mar 2018 12:19:59 -0700 Subject: [PATCH] Add comment on None Statement --- salt/modules/reg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/salt/modules/reg.py b/salt/modules/reg.py index 92e928231a..c635d75644 100644 --- a/salt/modules/reg.py +++ b/salt/modules/reg.py @@ -83,6 +83,7 @@ def _to_unicode(vdata): Converts from current users character encoding to unicode. Use this for parameters being pass to reg functions ''' + # None does not convert to Unicode if vdata is None: return None return salt.utils.stringutils.to_unicode(vdata, 'utf-8')