Skip to content
Snippets Groups Projects
Commit 7ae73e67 authored by Brandon Heller's avatar Brandon Heller
Browse files

Fix pylint warnings

parent f259e2fa
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@
from subprocess import call
from cmd import Cmd
from mininet.log import info, warn, cliinfo
from mininet.log import info, cliinfo
class CLI( Cmd ):
"Simple command-line interface to talk to nodes."
......
......@@ -126,6 +126,10 @@ def setLogLevel( self, levelname=None ):
self.setLevel( level )
self.handlers[ 0 ].setLevel( level )
# pylint: disable-msg=E0202
# "An attribute inherited from mininet.log hide this method"
# Not sure why this is occurring - this function definitely gets called.
# See /usr/lib/python2.5/logging/__init__.py; modified from warning()
def cliinfo( self, msg, *args, **kwargs ):
"""Log 'msg % args' with severity 'CLIINFO'.
......@@ -138,8 +142,9 @@ def cliinfo( self, msg, *args, **kwargs ):
if self.manager.disable >= CLIINFO:
return
if self.isEnabledFor( CLIINFO ):
apply( self._log, ( CLIINFO, msg, args ), kwargs )
self._log( CLIINFO, msg, args, kwargs )
# pylint: enable-msg=E0202
lg = MininetLogger()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment