(self, msg, *args)
Print a debug message, when the debug level is > 0.

        If extra arguments are present, they are substituted in the
        message using the standard string formatting operator.
Print a debug message, when the debug level is > 0.
Print a debug message when the debug level is > 0 .
def msg(self, msg, *args):
        """Print a debug message, when the debug level is > 0.

        If extra arguments are present, they are substituted in the
        message using the standard string formatting operator.

        """
        if self.debuglevel > 0:
            print('Telnet(%s,%s):' % (self.host, self.port), end=' ')
            if args:
                print(msg % args)
            else:
                print(msg)
def msg ( self , msg , * args ) : if self . debuglevel > 0 : print ( 'Telnet(%s,%s):' % ( self . host , self . port ) , end = ' ' ) if args : print ( msg % args ) else : print ( msg )