Remove unused Python variables in torch/[_-a]* (#133492)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/133492
Approved by: https://github.com/albanD
This commit is contained in:
Tom Ritchford
2024-12-12 12:11:20 +00:00
committed by PyTorch MergeBot
parent 7667235a23
commit dc23f1944a
143 changed files with 275 additions and 455 deletions

View File

@ -515,7 +515,7 @@ def _get_win_folder_from_registry(csidl_name):
_winreg.HKEY_CURRENT_USER,
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",
)
dir, type = _winreg.QueryValueEx(key, shell_folder_name)
dir, _type = _winreg.QueryValueEx(key, shell_folder_name)
return dir