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

PR: remove unnecessary eval in generate.py #640

Merged
merged 2 commits into from Jan 4, 2023
Merged

PR: remove unnecessary eval in generate.py #640

merged 2 commits into from Jan 4, 2023

Conversation

edreamleo
Copy link
Contributor

@edreamleo edreamleo commented Jan 3, 2023

A nit, discovered while investigating the unit test framework. The eval does not seem like a security problem :-)

The new code does, however, reinforce the docstring.

Hmm. create_generate does not appear anywhere in Rope except for the two unit tests that test it. Nor do the docs mention create_generate. What's going on?

@lieryan
Copy link
Member

lieryan commented Jan 4, 2023

Thank you for fixing this @edreamleo

It seems to be used by ropemode (src), so it's used by ropevim and ropemacs.

It probably should've been documented, or ropemode should've used a documented interface instead.

@lieryan lieryan merged commit 31cbf92 into python-rope:master Jan 4, 2023
@edreamleo edreamleo deleted the ekr-generate branch January 4, 2023 09:38
@lieryan lieryan added this to the 1.7.0 milestone Jan 17, 2023
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.

None yet

2 participants