Merge pull request #252 from sieben/useless_parenthesis

fixup: useless_parenthesis
This commit is contained in:
lantz
2014-01-28 15:22:53 -08:00
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ def fixNetworkManager( root, intf ):
cfile = '/etc/network/interfaces'
line = '\niface %s inet manual\n' % intf
config = open( cfile ).read()
if ( line ) not in config:
if line not in config:
print '*** Adding', line.strip(), 'to', cfile
with open( cfile, 'a' ) as f:
f.write( line )