mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Cleanup: quiet Python linter warnings
This commit is contained in:
parent
560b6e2831
commit
a7bc3e3418
25 changed files with 49 additions and 38 deletions
|
|
@ -31,7 +31,7 @@ class _TempModuleOverride:
|
|||
self.module = sys.modules.get(self.module_name)
|
||||
sys.modules[self.module_name] = self.module_override
|
||||
|
||||
def __exit__(self, type, value, traceback):
|
||||
def __exit__(self, _type, _value, _traceback):
|
||||
if self.module is None:
|
||||
# Account for removal of `module_override` (albeit unlikely).
|
||||
sys.modules.pop(self.module_name, None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue