Revision 824afb84 examples/nat.py

View differences:

examples/nat.py
59 59
    cfile = '/etc/network/interfaces'
60 60
    line = '\niface %s inet manual\n' % intf
61 61
    config = open( cfile ).read()
62
    if ( line ) not in config:
62
    if line not in config:
63 63
        print '*** Adding', line.strip(), 'to', cfile
64 64
        with open( cfile, 'a' ) as f:
65 65
            f.write( line )

Also available in: Unified diff