rope icon indicating copy to clipboard operation
rope copied to clipboard

Remove Argument - refactoring produces syntax error at callsite when one of the arguments contains string-formatting

Open julian-goettingen opened this issue 2 years ago • 0 comments

Describe the bug Somehow the refactoring at the callsite messes up an unrelated string.format-argument

To Reproduce Steps to reproduce the behavior:

  1. Code before refactoring:
print_or_log_messages(None, '    write into: {}'.format(folder_path_input_data))
  1. Remove the first argument (at the definition of print_or_log_messages)

  2. Expected code after refactoring:


print_or_log_messages('    write into: {}'.format(folder_path_input_data))
  1. Describe the error or unexpected result that you are getting
print_or_log_messages('    write into)

Editor information (please complete the following information):

  • Project Python version: 3.7.9
  • Rope Python version: 3.7.9
  • Rope version: 1.8.0
  • Text editor/IDE and version: (no editor, using rope as a library)

Additional context still love your library

julian-goettingen avatar May 30 '23 11:05 julian-goettingen