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

Fixed a few more bugs caused by misnamed variables

This commit is contained in:
imdano
2008-03-05 15:30:22 +00:00
parent cb88439499
commit 0bd129df85
2 changed files with 6 additions and 3 deletions

View File

@@ -130,7 +130,9 @@ def Noneify(variable):
return None
if variable in ("False", "0"):
return False
return bool(variable)
if variable in ("True", "1"):
return True
return variable
def ParseEncryption(network):
""" Parse through an encryption template file