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

Fix F841 flake8 errors #923

Merged
merged 5 commits into from
Apr 1, 2021
Merged

Fix F841 flake8 errors #923

merged 5 commits into from
Apr 1, 2021

Conversation

rahulporuri
Copy link
Contributor

This PR fixes the F841 flake8 errors - "local variable is assigned but never used".

looks like data needs to be loaded twice from the clipboard

	modified:   pyface/ui/qt4/clipboard.py
Copy link
Contributor

@aaronayres35 aaronayres35 left a comment

Choose a reason for hiding this comment

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

LGTM

Just a few questions /comments. I searched the relevant files for things being removed and I believe these should be safe

pyface/ui/wx/grid/tests/test_simple_grid_model.py Outdated Show resolved Hide resolved
Comment on lines +85 to +88
## if previous_non_empty_group is not None and group.separator:
## tool_bar.AddSeparator()
##
## previous_non_empty_group = group
## previous_non_empty_group = group
Copy link
Contributor

Choose a reason for hiding this comment

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

why not just delete the commented code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have a very good reason here. It just looked like meaningful code and that there might be some value in keeping it.

pyface/ui/null/action/action_item.py Outdated Show resolved Hide resolved
pyface/ui/qt4/clipboard.py Show resolved Hide resolved
Poruri Sai Rahul added 3 commits April 1, 2021 13:42
	modified:   pyface/ui/wx/grid/tests/test_simple_grid_model.py
	modified:   pyface/ui/null/action/action_item.py
@rahulporuri rahulporuri merged commit d119363 into master Apr 1, 2021
@rahulporuri rahulporuri deleted the flake8/F841 branch April 1, 2021 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants