force return value from zip to be a list in py3
This commit is contained in:
parent
4c8919f9ac
commit
0c42ae8a70
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ def get_language_from_extension(file_name):
|
||||||
if extension == '.h':
|
if extension == '.h':
|
||||||
directory = os.path.dirname(file_name)
|
directory = os.path.dirname(file_name)
|
||||||
available_files = os.listdir(directory)
|
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]
|
available_extensions = [ext.lower() for ext in available_extensions]
|
||||||
if '.cpp' in available_extensions:
|
if '.cpp' in available_extensions:
|
||||||
return 'C++'
|
return 'C++'
|
||||||
|
|
Loading…
Reference in a new issue