Monday, May 21, 2018

RE: f-strings with self.stdout management commands

Nevermind…

I was using self.stdout(f'')

Instead of

self.stdout.write(f'')

 

Go figure…

 

From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Matthew Pava
Sent: Monday, May 21, 2018 9:21 AM
To: django-users@googlegroups.com
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment