Merge pull request #13015 from j0057/fix-powershell-shebang-not-found

Make sure potential_names is not dependent on hashing order
This commit is contained in:
Toshio Kuratomi 2015-11-03 07:36:56 -08:00
commit d8a6659d73

View file

@ -165,7 +165,7 @@ class PluginLoader(object):
else:
suffixes = ['.py', '']
potential_names = frozenset('%s%s' % (name, s) for s in suffixes)
potential_names = list('%s%s' % (name, s) for s in suffixes)
for full_name in potential_names:
if full_name in self._plugin_path_cache:
return self._plugin_path_cache[full_name]