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"