Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5a8a405

Browse files
committed
Refactor Git.{AutoInterrupt,CatFileContentStream} nesting
This makes `Git.AutoInterrupt` and `Git.CatFileContentStream`transparent aliases to top-level nonpublic `_AutoInterrupt` and`_CatFileContentStream` classes in the `cmd` module.This does not change the "public" interface. It also does notchange metadata relevant to documentation: the `__name__` and`__qualname__` attributes are set explicitly to the values they hadbefore when these classes were defined nested, so that Sphinxcontinues to document them (and to do so in full) in `Git` and as`Git.AutoInterrupt` and `Git.CatFileContentStream`.The purpose of this is to increase readability. The `Git` class isbig and complex, with a number of long members and various forms ofnesting. Since these two classes can be understood even withoutreading the code of the `Git` class, moving the definitions out ofthe `Git` class into top-level nonpublic classes will hopefullyincrease readability and help with maintenance.
1 parentcf8029d commit5a8a405

File tree

1 file changed

+226
-214
lines changed

1 file changed

+226
-214
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp