antoinemartin / django-windows-tools

Django application providing management commands to host Django projects in Windows environments
BSD 2-Clause "Simplified" License
51 stars 13 forks source link

Fixed wrong I/O stream fileno #23

Closed vergeev closed 6 years ago

vergeev commented 6 years ago

It's not guaranteed that sys.stdin.fileno() == sys.stdout.fileno().

For example, when I launch python manage.py winfcgi command from PowerShell for debugging purposes, I get ValueError: Cannot open console input buffer for writing precisely because sys.stdin.fileno() != sys.stdout.fileno().

mrbean-bremen commented 6 years ago

Thanks for that - I think this is just a copy-and-paste error that nobody noticed until now.