Improve readability of WinBashStatus class · gitpython-developers/GitPython@3303c74 · GitHub
Skip to content

Commit 3303c74

Browse files
committed
Improve readability of WinBashStatus class
- Factor out the code to get the Windows ACP to a helper function, and comment to explain why it doesn't use locale.getencoding. - Remove nonessential material in the WinBashStatus.check docstring and reword the rest for clarity. - Drop reStructuredText notation in the WinBashStatus docstrings, because in this case it seems to be making them harder to read in the code (we are not generating Sphinx documentation for tests.) - Revise the comments on specific steps in WinBashStatus._decode for accuracy and clarity.
1 parent b07e5c7 commit 3303c74

1 file changed

Lines changed: 47 additions & 49 deletions

File tree

test/test_index.py

Lines changed: 47 additions & 49 deletions

0 commit comments

Comments
 (0)