diff options
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r-- | sphinx/util/osutil.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py index bfc80adcf..e8d47c5c7 100644 --- a/sphinx/util/osutil.py +++ b/sphinx/util/osutil.py @@ -197,7 +197,9 @@ class FileAvoidWrite: def __enter__(self) -> "FileAvoidWrite": return self - def __exit__(self, exc_type: Type[Exception], exc_value: Exception, traceback: Any) -> bool: # NOQA + def __exit__( + self, exc_type: Type[Exception], exc_value: Exception, traceback: Any + ) -> bool: self.close() return True |