Skip to content

Commit

Permalink
remove Python 2 compatibility code in Click domain
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke authored and davidism committed Jun 8, 2023
1 parent 8d00582 commit 8e87947
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Version 2.1.1

Unreleased

- Remove leftover Python 2 compatibility code. :pr:`69`
- Dotted underlines on links are smaller. :issue:`70`


Expand Down
3 changes: 1 addition & 2 deletions src/pallets_sphinx_themes/themes/click/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from functools import partial

import click
from click._compat import text_type
from click.testing import CliRunner
from click.testing import EchoingStdin
from docutils import nodes
Expand Down Expand Up @@ -67,7 +66,7 @@ def dummy_call(*args, **kwargs):
class ExampleRunner(CliRunner):
def __init__(self):
super().__init__(echo_stdin=True)
self.namespace = {"click": click, "__file__": "dummy.py", "str": text_type}
self.namespace = {"click": click, "__file__": "dummy.py"}

@contextlib.contextmanager
def isolation(self, *args, **kwargs):
Expand Down

0 comments on commit 8e87947

Please sign in to comment.