File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111
1212class NetrcEnvironment :
13- """
14- Context manager for setting up an isolated environment to test `.netrc` file
15- handling.
13+ """Context manager for setting up an isolated environment to test
14+ `.netrc` file handling.
1615
1716 This class configures a temporary directory for the `.netrc` file and
1817 environment variables, providing a controlled setup to simulate different
1918 scenarios.
2019 """
2120
2221 def __enter__ (self ):
23- """
24- Enter the managed environment.
25- """
22+ """Enter the managed environment."""
2623 self .stack = ExitStack ()
2724 self .environ = self .stack .enter_context (
2825 support .os_helper .EnvironmentVarGuard (),
@@ -31,10 +28,10 @@ def __enter__(self):
3128 return self
3229
3330 def __exit__ (self , * ignore_exc ):
34- """
35- Exit the managed environment and performs cleanup. This method closes
36- the `ExitStack`, which automatically cleans up the temporary directory
37- and environment.
31+ """Exit the managed environment and performs cleanup.
32+
33+ This method closes the `ExitStack`, which automatically cleans up the
34+ temporary directory and environment.
3835 """
3936 self .stack .close ()
4037
You can’t perform that action at this time.
0 commit comments