fixup: useless_parenthesis

This commit is contained in:
Rémy Léone
2013-12-20 14:43:30 +01:00
parent a6a0cb4331
commit 824afb84c9
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 )