From 323989953b245733d9df9c8bdac51e6b415b8668 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 25 Jul 2018 22:39:07 -0700 Subject: [PATCH] Try to fix pylint errors ;-p --- mininet/util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mininet/util.py b/mininet/util.py index 15a7b52..cb09f27 100644 --- a/mininet/util.py +++ b/mininet/util.py @@ -25,7 +25,10 @@ def encode( s ): "Encode a byte string if needed for Python 3" return s.encode( Encoding ) if Python3 else s try: + # pylint: disable=import-error + oldpexpect = None import pexpect as oldpexpect + # pylint: enable=import-error class Pexpect( object ): "Custom pexpect that is compatible with str"