Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Commit

Permalink
Change some tuples to lists in extmatch.
Browse files Browse the repository at this point in the history
  • Loading branch information
kleintom committed May 6, 2016
1 parent 6308216 commit 79fa513
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dxr/plugins/extmatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@
from dxr.mime import icon
from dxr.utils import browse_file_url

# A tuple of extensions along with a title describing the type of extensions:

# A list of extensions along with a title describing the type of extensions:
_TitledExts = namedtuple('_TitledExts', ['exts', 'title'])


class TreeToIndex(TreeToIndexBase):
def __init__(self, plugin_name, tree, vcs_cache):
super(TreeToIndex, self).__init__(plugin_name, tree, vcs_cache)
self.header_exts = _TitledExts(('.h', '.hpp', '.hxx'), 'Header')
self.impl_exts = _TitledExts(('.cpp', '.c', '.cc', '.cxx', '.mm'),
self.header_exts = _TitledExts(['.h', '.hxx', '.hpp'], 'Header')
self.impl_exts = _TitledExts(['.cpp', '.c', '.cc', '.cxx', '.mm'],
'Implementation')

def file_to_index(self, path, contents):
Expand Down

0 comments on commit 79fa513

Please sign in to comment.