Revision 7a506047

View differences:

mininet/log.py
117 117
           Convenience function to support lowercase names.
118 118
           levelName: level name from LEVELS"""
119 119
        level = LOGLEVELDEFAULT
120
        if levelname != None:
120
        if levelname is not None:
121 121
            if levelname not in LEVELS:
122 122
                raise Exception( 'unknown levelname seen in setLogLevel' )
123 123
            else:
mininet/net.py
421 421
            return (1, 0)
422 422
        r = r'(\d+) packets transmitted, (\d+) received'
423 423
        m = re.search( r, pingOutput )
424
        if m == None:
424
        if m is None:
425 425
            error( '*** Error: could not parse ping output: %s\n' %
426 426
                     pingOutput )
427 427
            return (1, 0)
mininet/util.py
46 46
                break
47 47
            out += data
48 48
        popen.poll()
49
        if popen.returncode != None:
49
        if popen.returncode is not None:
50 50
            break
51 51
    return out
52 52

  

Also available in: Unified diff