Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxGUI: Fixed F841 in ii2t_manager.py #4418

Merged
merged 6 commits into from
Oct 1, 2024
Merged

Conversation

arohanajit
Copy link
Contributor

FIxed F841 by following changes

  • Removed busy variable and calling the function by itself since we don't need the return value
  • Removed point variable which I assume was used to get cursor position but isn't used anywhere. I am not sure if this function has some inbuilt settings which are called with the constructor - in which case, we can just call it without getting the return values
  • Removed diff and reload_target - which were just being reassigned without being used or passed on

@github-actions github-actions bot added GUI wxGUI related Python Related code is in Python labels Sep 30, 2024
Copy link
Contributor

@petrasovaa petrasovaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See https://docs.wxpython.org/wx.BusyInfo.html to use BusyInfo with context manager

@petrasovaa petrasovaa added this to the 8.5.0 milestone Oct 1, 2024
@echoix echoix merged commit 3e53e34 into OSGeo:main Oct 1, 2024
26 checks passed
@arohanajit arohanajit deleted the ii2t-manager branch October 1, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI wxGUI related Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants