Changeset 27709

Show
Ignore:
Timestamp:
12/08/2009 03:25:29 AM (9 months ago)
Author:
jonathanj
Message:

Address review commentary. refs #3296

Location:
branches/isupport-aware-mode-parsing-3296/twisted/words
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/isupport-aware-mode-parsing-3296/twisted/words/protocols/irc.py

    r27551 r27709  
    17471747        """ 
    17481748        channel, modes, args = params[0], params[1], params[2:] 
    1749          
     1749 
    17501750        if modes[0] not in '-+': 
    17511751            modes = '+' + modes 
     
    17611761            added, removed = parseModes(modes, args, paramModes) 
    17621762        except IRCBadModes: 
    1763             log.msg('An error occured while parsing the following MODE message:' 
    1764                     ' MODE %s' % (' '.join(params),)) 
    1765             log.err() 
     1763            log.err(None, 'An error occured while parsing the following ' 
     1764                          'MODE message: MODE %s' % (' '.join(params),)) 
    17661765        else: 
    17671766            if added: 
  • branches/isupport-aware-mode-parsing-3296/twisted/words/test/test_irc.py

    r27552 r27709  
    884884 
    885885 
    886     def testISupport(self): 
     886    def test_ISUPPORT(self): 
     887        """ 
     888        The client parses ISUPPORT messages sent by the server and calls 
     889        L{IRCClient.isupport}. 
     890        """ 
    887891        self._sendISUPPORT() 
    888892 
     
    10751079    def test_modeMissingDirection(self): 
    10761080        """ 
    1077         Mode strings that do not begin with a directional character, C{+} or 
    1078         C{-}, have C{+} automatically prepended. 
     1081        Mode strings that do not begin with a directional character, C{'+'} or 
     1082        C{'-'}, have C{'+'} automatically prepended. 
    10791083        """ 
    10801084        self._sendModeChange('s')