/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to classify.py

  • Committer: vitaliy.kulikov
  • Date: 2009-11-02 20:23:39 UTC
  • mto: (0.140.34 trunk)
  • mto: This revision was merged to the branch mainline in revision 6646.
  • Revision ID: vitaliy.kulikov-20091102202339-kay8coj3be99sb3x
Java type added

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    :return: One of code, documentation, translation or art. 
29
29
        None if determining the file type failed.
30
30
    """
31
 
    # FIXME: Use mime types? Ohcount? 
 
31
    # FIXME: Use mime types? Ohcount?
 
32
    # TODO: It will be better move those filters to properties file 
 
33
        # and have possibility to determining own types !?
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", 
 
36
                                    ".java"):
34
37
        return "code"
35
38
    if extension in (".html", ".xml", ".txt", ".rst", ".TODO"):
36
39
        return "documentation"