1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-20 12:58:07 +01:00

A bunch of small fixes for errors/warnings reported by Pylint.

This commit is contained in:
Dan O'Reilly
2009-01-31 00:31:50 -05:00
parent 339b622b09
commit d22a59cbcc
12 changed files with 38 additions and 41 deletions

View File

@@ -211,13 +211,13 @@ def ParseEncryption(network):
# Write the data to the files then chmod them so they can't be read
# by normal users.
file = open(wpath.networks + network["bssid"].replace(":", "").lower(), "w")
f = open(wpath.networks + network["bssid"].replace(":", "").lower(), "w")
os.chmod(wpath.networks + network["bssid"].replace(":", "").lower(), 0600)
os.chown(wpath.networks + network["bssid"].replace(":", "").lower(), 0, 0)
# We could do this above, but we'd like to read protect
# them before we write, so that it can't be read.
file.write(z)
file.close()
f.write(z)
f.close()
def LoadEncryptionMethods():
""" Load encryption methods from configuration files