Skip to content

Commit 33ac518

Browse files
Berthin TorresBerthin Torres
authored andcommitted
Fix comments
1 parent 45d4f4c commit 33ac518

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

Lib/test/test_netrc.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,16 @@
1010

1111

1212
class 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

0 commit comments

Comments
 (0)