# built documents.
#
# The short X.Y version.
-version = '0.5.7'
+version = '0.5.8'
# The full version, including alpha/beta/rc tags.
-release = '0.5.7'
+release = '0.5.8'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
"""
Load config from filepath
"""
- with open(filepath, encoding='utf-8') as f:
+ with open(filepath) as f:
content = ''.join(f.readlines())
match = comment_re.search(content)
while match:
else:
data[key] = value
# Save
- with open(path, 'w', encoding='utf-8') as out:
+ with open(path, 'w') as out:
json.dump(data, out, indent=4)
os.system('chmod 777 ' + path)
else:
raise Exception('No such config key.')
# Save
- with open(path, 'w', encoding='utf-8') as out:
+ with open(path, 'w') as out:
json.dump(data, out, indent=4)
os.system('chmod 777 ' + path)