- encoding errors

This commit is contained in:
L.C. Rees 2012-06-01 16:48:46 -06:00
parent 5ef35e7f4c
commit ea62a8c0cd
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ def __write_aliases_file(lines):
os.chmod(out.name, stat.S_IMODE(st.st_mode))
os.chown(out.name, st.st_uid, st.st_gid)
else:
os.chmod(out.name, 0644)
os.chmod(out.name, 0o644)
os.chown(out.name, 0, 0)
for (line_alias, line_target, line_comment) in lines:

View file

@ -34,7 +34,7 @@ def __virtual__():
'''
Only load this module if the mysql config is set
'''
if any(k.startswith('mysql.') for k in list(__opts__):
if any(k.startswith('mysql.') for k in list(__opts__)):
if has_mysqldb:
return 'mysql'
return False