Nevermind…
I was using self.stdout(f’’)
Instead of
self.stdout.write(f’’)

Go figure…

From: [email protected] [mailto:[email protected]] On 
Behalf Of Matthew Pava
Sent: Monday, May 21, 2018 9:21 AM
To: [email protected]
Subject: f-strings with self.stdout management commands

I was using Python 3’s f-strings with self.stdout in a BaseCommand.
I keep getting this exception:
TypeError: ‘OutputWrapper’ object is not callable

Any ideas?

--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ab17b313e3e44e01b7c9a3a55fddc7a5%40ISS1.ISS.LOCAL<https://groups.google.com/d/msgid/django-users/ab17b313e3e44e01b7c9a3a55fddc7a5%40ISS1.ISS.LOCAL?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d3821c48706b4dd6ae81e96c809e3672%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to