atomic_write: use keyword for mode argument
this will allow us to define atomic_write as keyword-only as soon as py2 compatibility is dropped.
This commit is contained in:
1 parent
c05b6572c5
commit
41fab8a36c
9 files changed
+11
-12
No files matched your search
@@ -189,7 +189,7 @@ class LoggingPlugin(octoprint.plugin.AssetPlugin,
|
||||
config["loggers"] = {k: v for k, v in config["loggers"].items() if len(v)}
|
||||
|
||||
# save
|
||||
with octoprint.util.atomic_write(self._get_logging_file(), "wb", max_permissions=0o666) as f:
|
||||
with octoprint.util.atomic_write(self._get_logging_file(), mode="wb", max_permissions=0o666) as f:
|
||||
yaml.safe_dump(config, f, default_flow_style=False, indent=2, allow_unicode=True)
|
||||
|
||||
# set runtime logging levels now
|
||||
|
||||
Reference in new issue
Block a user