Commits

Anonymous committed d5ef1b8

refactor: using `ChangeSignature.get_args()`

Comments (0)

Files changed (1)

ropemode/refactor.py

 
     def _calculate_changes(self, values, task_handle):
         signature = values.get('signature')
-        info = self.changer.get_definition_info()
         args = re.sub(r'[\s\(\)]+', '', signature).split(',')
-        olds = [arg[0] for arg in info.args_with_defaults]
+        olds = [arg[0] for arg in self.changer.get_args()]
 
         changers = []
         for arg in list(olds):
                                         **values)
 
     def _get_confs(self):
-        info = self.changer.get_definition_info()
         args = []
-        for arg, default in info.args_with_defaults:
+        for arg, default in self.changer.get_args():
             args.append(arg)
         signature = '(' + ', '.join(args) + ')'
         return {'signature': dialog.Data('Change the signature: ',