summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2011-04-13 09:32:17 -0700
committerNathan Binkert <nate@binkert.org>2011-04-13 09:32:17 -0700
commit326adda5f39d7aa90c573ad3444d27a3defbd1bc (patch)
tree642673b39b25c1cb9841cb17f65666d8e6cffd77 /util
parentd50d0152d0ea40e93c73dec1ffb6f37e79609fdd (diff)
downloadgem5-326adda5f39d7aa90c573ad3444d27a3defbd1bc.tar.xz
util: fix the language type function
Diffstat (limited to 'util')
-rw-r--r--util/file_types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/file_types.py b/util/file_types.py
index 3315a747f..8fc2b1af4 100644
--- a/util/file_types.py
+++ b/util/file_types.py
@@ -70,7 +70,7 @@ def lang_type(filename, firstline=None, openok=True):
# now try to detect language based on file prefix
for start,lang in lang_prefixes:
if basename.startswith(start):
- return start
+ return lang
# if a first line was not provided but the file is ok to open,
# grab the first line of the file.