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 bug with lost alias when 'import as' is used #38

Merged
merged 1 commit into from
May 14, 2020

Conversation

browniebroke
Copy link
Owner

@browniebroke browniebroke commented May 14, 2020

It's quite common to import ugettext as _ like this:

from django.utils.translation import ugettext as _

translated = = _("content")

In such case, the _ alis is lost which causes invalid syntax.

@browniebroke browniebroke added the bug Something isn't working label May 14, 2020
@browniebroke browniebroke merged commit f686ed0 into master May 14, 2020
@browniebroke browniebroke deleted the bugfix/import-as branch May 14, 2020 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant