/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 breezy/plugins/stats/classify.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    """
33
33
    # FIXME: Use mime types? Ohcount?
34
34
    # TODO: It will be better move those filters to properties file
35
 
        # and have possibility to determining own types !?
 
35
    # and have possibility to determining own types !?
36
36
    extension = os.path.splitext(name)[1]
37
37
    if extension in (".c", ".h", ".py", ".cpp", ".rb", ".pm", ".pl", ".ac",
38
 
                        ".java", ".cc", ".proto", ".yy", ".l"):
 
38
                     ".java", ".cc", ".proto", ".yy", ".l"):
39
39
        return "code"
40
40
    if extension in (".html", ".xml", ".txt", ".rst", ".TODO"):
41
41
        return "documentation"