Revision 7a506047 mininet/log.py

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:

Also available in: Unified diff