Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(py3): remove outdated python2 utf8 hint #207

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
Expand Down
2 changes: 0 additions & 2 deletions exhale/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
# #
# https://github.com/svenevs/exhale/blob/master/LICENSE #
########################################################################################

from __future__ import unicode_literals

__version__ = "0.3.8.dev"

Expand Down
2 changes: 0 additions & 2 deletions exhale/configs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand Down Expand Up @@ -40,7 +39,6 @@
options are to modify the behavior of Exhale.
'''

from __future__ import unicode_literals

import os
import six
Expand Down
2 changes: 0 additions & 2 deletions exhale/deploy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -13,7 +12,6 @@
2. Launching the full API generation via the :func:`~exhale.deploy.explode` function.
'''

from __future__ import unicode_literals

from . import configs
from . import utils
Expand Down
2 changes: 0 additions & 2 deletions exhale/graph.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
# #
# https://github.com/svenevs/exhale/blob/master/LICENSE #
########################################################################################

from __future__ import unicode_literals

from . import configs
from . import parse
Expand Down
2 changes: 0 additions & 2 deletions exhale/parse.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
# #
# https://github.com/svenevs/exhale/blob/master/LICENSE #
########################################################################################

from __future__ import unicode_literals

from . import configs
from . import utils
Expand Down
3 changes: 1 addition & 2 deletions exhale/utils.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
# #
# https://github.com/svenevs/exhale/blob/master/LICENSE #
########################################################################################

from __future__ import unicode_literals, annotations
from __future__ import annotations
from typing import TextIO, Union

from . import configs
Expand Down
2 changes: 0 additions & 2 deletions testing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -9,7 +8,6 @@
The testing package for Exhale.
"""

from __future__ import unicode_literals
import os


Expand Down
3 changes: 0 additions & 3 deletions testing/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -11,7 +10,6 @@
All project based test cases should inherit from :class:`testing.base.ExhaleTestCase`.
"""

from __future__ import unicode_literals
import os
import platform
import re
Expand Down Expand Up @@ -171,7 +169,6 @@ def _rootdir(self, app_params):
# Sphinx demands a `conf.py` is present
with open(os.path.join(testroot, "conf.py"), "w") as conf_py:
conf_py.write(textwrap.dedent('''\
# -*- coding: utf-8 -*-
project = "{test_project}"
extensions = ["breathe", "exhale"]
master_doc = "index"
Expand Down
2 changes: 0 additions & 2 deletions testing/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -13,7 +12,6 @@
__ https://docs.pytest.org/en/latest/example/simple.html#package-directory-level-fixtures-setups
"""

from __future__ import unicode_literals

pytest_plugins = [
"sphinx.testing.fixtures",
Expand Down
2 changes: 0 additions & 2 deletions testing/decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -9,7 +8,6 @@
The decorators module defines useful class / function decorators for test cases.
"""

from __future__ import unicode_literals
from copy import deepcopy
from inspect import isclass

Expand Down
2 changes: 0 additions & 2 deletions testing/fixtures.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -8,7 +7,6 @@
"""
Provides fixtures to be available for all test cases.
"""
from __future__ import unicode_literals
from exhale import deploy
import pytest

Expand Down
2 changes: 0 additions & 2 deletions testing/hierarchies.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -22,7 +21,6 @@
:func:`~testing.hierarchies.compare_file_hierarchy`.
"""

from __future__ import unicode_literals
import codecs
import os
import platform
Expand Down
1 change: 0 additions & 1 deletion testing/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand Down
2 changes: 0 additions & 2 deletions testing/tests/c_maths.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -9,7 +8,6 @@
Tests for the ``c_maths`` project.
"""

from __future__ import unicode_literals
import os

from testing.base import ExhaleTestCase
Expand Down
2 changes: 0 additions & 2 deletions testing/tests/configs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -8,7 +7,6 @@
"""
Tests for validating error handling with configs set in ``conf.py``.
"""
from __future__ import unicode_literals
import re
import textwrap
from pathlib import Path
Expand Down
2 changes: 0 additions & 2 deletions testing/tests/configs_tree_view.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -8,7 +7,6 @@
"""
Tests specifically focused on the various tree view configurations.
"""
from __future__ import unicode_literals

import os
import re
Expand Down
1 change: 0 additions & 1 deletion testing/tests/configs_tree_view_data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand Down
2 changes: 0 additions & 2 deletions testing/tests/cpp_dir_underscores.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -9,7 +8,6 @@
Tests for the ``cpp_dir_underscores`` project.
"""

from __future__ import unicode_literals
import os

from testing.base import ExhaleTestCase
Expand Down
2 changes: 0 additions & 2 deletions testing/tests/cpp_fortran_mixed.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -9,7 +8,6 @@
Tests for the ``cpp_fortran_mixed`` project.
"""

from __future__ import unicode_literals
import os
import platform
import re
Expand Down
2 changes: 0 additions & 2 deletions testing/tests/cpp_func_overloads.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -9,7 +8,6 @@
Tests for the ``cpp_func_overloads`` project.
"""

from __future__ import unicode_literals

from testing.base import ExhaleTestCase
from testing.decorators import no_cleanup
Expand Down
2 changes: 0 additions & 2 deletions testing/tests/cpp_long_names.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -9,7 +8,6 @@
Tests for the ``cpp_long_names`` project.
"""

from __future__ import unicode_literals
import hashlib
import os
import platform
Expand Down
2 changes: 0 additions & 2 deletions testing/tests/cpp_nesting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -9,7 +8,6 @@
Tests for the ``cpp_nesting`` project.
"""

from __future__ import unicode_literals

import os.path as osp
import re
Expand Down
2 changes: 0 additions & 2 deletions testing/tests/cpp_pimpl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -9,7 +8,6 @@
Tests for the ``cpp_nesting`` project.
"""

from __future__ import unicode_literals

import os
import re
Expand Down
2 changes: 0 additions & 2 deletions testing/tests/cpp_with_spaces.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -9,7 +8,6 @@
Tests for the ``cpp_with_spaces`` project.
"""

from __future__ import unicode_literals

from testing.base import ExhaleTestCase
from testing.decorators import no_cleanup
Expand Down
1 change: 0 additions & 1 deletion testing/tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand Down
2 changes: 0 additions & 2 deletions testing/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf8 -*-
########################################################################################
# This file is part of exhale. Copyright (c) 2017-2024, Stephen McDowell. #
# Full BSD 3-Clause license available here: #
Expand All @@ -9,7 +8,6 @@
Utility functionality for the testing suite.
"""

from __future__ import unicode_literals
try:
from collections.abc import Mapping
except ImportError:
Expand Down
Loading