diff options
author | toonn <toonn@toonn.io> | 2021-08-27 20:31:01 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-08-27 20:31:01 +0200 |
commit | 6333f398c4e93501dd9772f24622963712d21e3c (patch) | |
tree | 31fb3fb75cb0573827375aaa29320e8d458cfd81 /tests | |
parent | 53ccd22dbe37e0e42528e0c405a1a461514e0965 (diff) | |
parent | 1df7a7e4865790e907be86f84e52dc6125436b05 (diff) | |
download | ranger-6333f398c4e93501dd9772f24622963712d21e3c.tar.gz |
Merge branch 'pylint3k'
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/manpage_completion_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/manpage_completion_test.py b/tests/manpage_completion_test.py index f5e5c335..1a01f944 100755 --- a/tests/manpage_completion_test.py +++ b/tests/manpage_completion_test.py @@ -26,6 +26,7 @@ def get_path_of_man_page(): def read_manpage(): path = get_path_of_man_page() + # pylint: disable=unspecified-encoding with open(path, 'r') as man_page: return man_page.read() @@ -33,7 +34,7 @@ def read_manpage(): def get_sections(): manpage = read_manpage() parts = manpage.split('=head1 ') - sections = dict() + sections = {} for part in parts: if '\n' in part: section_name, section_content = part.split('\n', 1) |