From 54454deaf38cdc1061215ef3fb2d239e3216e805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 12 Oct 2021 18:27:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Post-merge=20pre-commit=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/util/yaml.py | 7 +------ tests/util/test_fast_deepcopy.py | 3 --- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/octoprint/util/yaml.py b/src/octoprint/util/yaml.py index 914c4cea3..818141fca 100644 --- a/src/octoprint/util/yaml.py +++ b/src/octoprint/util/yaml.py @@ -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: diff --git a/tests/util/test_fast_deepcopy.py b/tests/util/test_fast_deepcopy.py index 9234c6ecf..582535b2c 100644 --- a/tests/util/test_fast_deepcopy.py +++ b/tests/util/test_fast_deepcopy.py @@ -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"