Commits

Jędrzej Nowak  committed 11ef706

after_command is using self.commands now

  • Participants
  • Parent commits 183fb78

Comments (0)

Files changed (1)

File pyrepl/completing_reader.py

 
     def after_command(self, cmd):
         super(CompletingReader, self).after_command(cmd)
-        if not isinstance(cmd, complete) and not isinstance(cmd, self_insert):
+        if not isinstance(cmd, self.commands['complete']) \
+           and not isinstance(cmd, self.commands['self_insert']):
             self.cmpltn_reset()
 
     def calc_screen(self):