You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
The move-source file content_editing/handlers.py has the import from content_editing.api import articles, which is used, but additionally, the moved class TutorialNavData has a method with a local variable articles. Because we don't try very hard to understand what is a local variable, we think that this is a reference to the module. So we copy the import when we move the class.
I'll think about whether there's a good way to do this, short of handling local variables more carefully, which is a known TODO but quite hard.
benjaminjkraft
changed the title
slicker brought in an unneeded import
slicker thinks a local variable is a reference to an import
Feb 2, 2018
With webapp in this state: https://github.com/Khan/webapp/commit/aa39930c84ad17154b943b2c917105957248fb84
I ran this command:
$ slicker.py content_editing.handlers.TutorialNavData content_render.handlers
It copied this line into content_render/handlers.py:
from content_editing.api import articles
That line is unused and it seems like a bug that it got added.
The text was updated successfully, but these errors were encountered: