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-10 16:40:26 +00:00
committed by PyTorch MergeBot
parent 2268319596
commit fda975a7b3
143 changed files with 275 additions and 457 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