diff options
Diffstat (limited to 'fastimport/processor.py')
-rw-r--r-- | fastimport/processor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fastimport/processor.py b/fastimport/processor.py index d71b98f..13aa987 100644 --- a/fastimport/processor.py +++ b/fastimport/processor.py @@ -78,7 +78,7 @@ class ImportProcessor(object): self.pre_process() for cmd in command_iter(): try: - handler = self.__class__.__dict__[cmd.name + "_handler"] + handler = getattr(self.__class__, cmd.name + "_handler") except KeyError: raise errors.MissingHandler(cmd.name) else: @@ -161,7 +161,7 @@ class CommitHandler(object): self.pre_process_files() for fc in self.command.iter_files(): try: - handler = self.__class__.__dict__[fc.name[4:] + "_handler"] + handler = getattr(self.__class__, fc.name[4:] + "_handler") except KeyError: raise errors.MissingHandler(fc.name) else: |