# -*-python-*-
-####################
+####################
# Create/update and populate the default site (should be site_id 1)
### plc_www holds the contents of the PLC_WWW configuration category
person = GetPersons(the_admin_id)[0]
keys = GetKeys(person['key_ids'])
if os.path.exists(keyfile):
- sshkeyfp = file(keyfile,"r")
- sshkey = sshkeyfp.read()
- sshkeyfp.close()
+ with open(keyfile) as feed:
+ sshkey = feed.read()
found=False
for key in keys: