Merge pull request #252 from sieben/useless_parenthesis

fixup: useless_parenthesis
This commit is contained in:
lantz committed 2014-01-28 15:22:53 -08:00
commit 873049c346
3 files changed
+5 -5

No files matched your search

+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 )