28
28
:return: One of code, documentation, translation or art.
29
29
None if determining the file type failed.
32
34
extension = os.path.splitext(name)[1]
33
if extension in (".c", ".h", ".py", ".cpp", ".rb", ".pm", ".pl", ".ac"):
35
if extension in (".c", ".h", ".py", ".cpp", ".rb", ".pm", ".pl", ".ac",
35
38
if extension in (".html", ".xml", ".txt", ".rst", ".TODO"):