Show
Ignore:
Timestamp:
04/04/06 11:16:53 (18 years ago)
Author:
jerome
Message:

Did a pass with pylint.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkturnkey

    r2745 r2829  
    223223        try : 
    224224            from pysnmp.asn1.encoding.ber.error import TypeMismatchError 
    225             from pysnmp.mapping.udp.error import SnmpOverUdpError 
    226225            from pysnmp.mapping.udp.role import Manager 
    227226            from pysnmp.proto.api import alpha 
     
    247246            tsp.close() 
    248247         
    249         def handleAnswer(wholeMsg, notusedhere, req): 
     248        def handleAnswer(wholemsg, notusedhere, req): 
    250249            """Decodes and handles the SNMP answer.""" 
    251250            ver = alpha.protoVersions[alpha.protoVersionId1] 
    252251            rsp = ver.Message() 
    253252            try : 
    254                 rsp.berDecode(wholeMsg) 
     253                rsp.berDecode(wholemsg) 
    255254            except TypeMismatchError, msg :     
    256255                raise "No SNMP !" 
     
    364363        """Intializes PyKota's database.""" 
    365364        if not self.config.isAdmin : 
    366             raise PyKotaCommandLineError, "%s : %s" % (pwd.getpwuid(os.geteuid())[0],\ 
     365            raise PyKotaCommandLineError, "%s : %s" % (pwd.getpwuid(os.geteuid())[0], \ 
    367366                                   _("You're not allowed to use this command.")) 
    368367