🎨 Post-merge pre-commit fixes

This commit is contained in:
Gina Häußge committed 2021-10-12 18:27:18 +02:00
1 parent e3df0ea934
commit 54454deaf3
2 files changed
+1 -9

No files matched your search

+1 -6
View File
@@ -1,8 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import io
from octoprint.util import bom_aware_open
@@ -38,7 +33,7 @@ def load_from_file(file=None, path=None):
def _save_to_file_base(data, file=None, path=None, pretty=False, **kwargs):
if path is not None:
assert file is None
with io.open(path, "wt", encoding="utf-8") as f:
with open(path, "wt", encoding="utf-8") as f:
return _save_to_file_base(data, file=f, pretty=pretty, **kwargs)
if file is not None:
-3
View File
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2021 The OctoPrint Project - Released under terms of the AGPLv3 License"