[blivet:master 01/20] Explicitly set the module level platform variable

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


rather than implicitly setting the variable in reset_platform().

Prompted by "W0601: Global variable %r undefined at the module level" pylint
error.

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

diff --git a/blivet/platform.py b/blivet/platform.py
index 92c455e..00dd80e 100644
--- a/blivet/platform.py
+++ b/blivet/platform.py
@@ -422,4 +422,4 @@ def reset_platform():
     global platform
     platform = getPlatform()
 
-reset_platform()
+platform = getPlatform()
-- 
1.8.3.1



More information about the anaconda-patches mailing list