# lanuage type for each file extension
lang_types = {
'.c' : "C",
+ '.cl' : "C",
'.h' : "C",
'.cc' : "C++",
'.hh' : "C++",
'.el' : "lisp",
'.txt' : "text",
'.tex' : "tex",
+ '.mk' : "make",
}
# languages based on file prefix
if isinstance(src, str):
# if a filename was provided, open the file
- mode = 'r+' if inplace else 'r'
+ if inplace:
+ mode = 'r+'
+ else:
+ mode = 'r'
src = file(src, mode)
orig_lines = []