force return value from zip to be a list in py3

This commit is contained in:
Alan Hamlett 2015-09-06 20:19:22 -07:00
parent 4c8919f9ac
commit 0c42ae8a70

View file

@ -132,7 +132,7 @@ def get_language_from_extension(file_name):
if extension == '.h':
directory = os.path.dirname(file_name)
available_files = os.listdir(directory)
available_extensions = zip(*map(os.path.splitext, available_files))[1]
available_extensions = list(zip(*map(os.path.splitext, available_files)))[1]
available_extensions = [ext.lower() for ext in available_extensions]
if '.cpp' in available_extensions:
return 'C++'