projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d50d015
)
util: fix the language type function
author
Nathan Binkert
<nate@binkert.org>
Wed, 13 Apr 2011 16:32:17 +0000
(09:32 -0700)
committer
Nathan Binkert
<nate@binkert.org>
Wed, 13 Apr 2011 16:32:17 +0000
(09:32 -0700)
util/file_types.py
patch
|
blob
|
history
diff --git
a/util/file_types.py
b/util/file_types.py
index 3315a747fd1173b891998063d2535e55a8f73d49..8fc2b1af4a574d47463aff9252b6afaa2fc7bc8d 100644
(file)
--- 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.