fix: clean up print (#26170)

This commit is contained in:
Exequiel Arona 2024-04-26 09:52:33 -03:00 committed by GitHub
parent 9e8808f06c
commit dc64678625
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@ def extract(*args, **kwargs):
Reuse the babel_extract function from jinja2.ext, but handle our own implementation of `_()`.
To handle JS microtemplates, parse all code again using regex."""
fileobj = args[0] or kwargs["fileobj"]
print(fileobj.name)
code = fileobj.read().decode("utf-8")
for lineno, funcname, messages, comments in babel_extract(*args, **kwargs):