Skip to content

Commit

Permalink
noqa
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Feb 6, 2024
1 parent ba9962d commit 33bf958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtualenv/create/via_global_ref/_virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def find_spec(self, fullname, path, target=None): # noqa: ARG002
old = getattr(spec.loader, func_name)
func = self.exec_module if is_new_api else self.load_module
if old is not func:
try:
try: # noqa: SIM105
setattr(spec.loader, func_name, partial(func, old))
except AttributeError:
pass # C-Extension loaders are r/o such as zipimporter with <3.7
Expand Down

0 comments on commit 33bf958

Please sign in to comment.