Revision c273f490 mininet/util.py

View differences:

mininet/util.py
388 388
    #read limit
389 389
    with open( name, 'r' ) as readFile:
390 390
        oldLimit = readFile.readline()
391
        if type( limit ) is int:
391
        if isinstance( limit, int ):
392 392
            #compare integer limits before overriding
393 393
            if int( oldLimit ) < limit:
394 394
                with open( name, 'w' ) as writeFile:

Also available in: Unified diff