file_iter should ideally be made private.
def process(self):
self.pre_process_files()
- for fc in self.command.file_iter():
+ for fc in self.command.iter_files():
try:
handler = self.__class__.__dict__[fc.name[4:] + "_handler"]
except KeyError:
self.committers.add(cmd.committer)
if cmd.author is not None:
self.separate_authors_found = True
- for fc in cmd.file_iter():
+ for fc in cmd.iter_files():
self.file_cmd_counts[fc.name] += 1
if isinstance(fc, commands.FileModifyCommand):
if fc.mode & 0111:
def commit_handler(self, cmd):
"""Process a CommitCommand."""
- for fc in cmd.file_iter():
- pass
+ pass
def reset_handler(self, cmd):
"""Process a ResetCommand."""