mu icon indicating copy to clipboard operation
mu copied to clipboard

Duplicate code found: let's refactor it!

Open tmontes opened this issue 1 year ago • 1 comments

What were you trying to do?

EP 2023 Sprints Czech translation

What steps did you take to trigger the issue?

The info message in mu/logic.py:1730 -- This name is already used by another part of Python... -- is repeated in line 1295.

These are codepaths that protect the user from saving files with "funky" names... Found in the save and rename_tab methods of the Editor class.

Thanks @prochazka-jan for finding it!

What did you expect to happen?

No code duplication? :)

What actually happened?

No response

Operating System Version

No response

Mu Version

Latest master.

Other Info

No response

Editor Log

No response

tmontes avatar Jul 23 '23 10:07 tmontes

fixed #2481.

SurajSanap avatar Dec 20 '23 18:12 SurajSanap