Skip to content
Snippets Groups Projects
  1. Jul 20, 2020
  2. Jul 22, 2020
  3. Apr 22, 2020
  4. Jul 20, 2020
  5. Jul 21, 2020
  6. Jul 20, 2020
  7. Jul 18, 2020
  8. Jul 19, 2020
  9. Jul 20, 2020
  10. Jul 14, 2020
  11. Jul 17, 2020
  12. Jul 18, 2020
  13. Jul 14, 2020
  14. Jul 09, 2020
  15. Jul 18, 2020
    • Manuel Jacob's avatar
      windows: don’t set `softspace` attribute in `winstdout` · ed58ecd59030
      Manuel Jacob authored
      Python 2 file objects have the `softspace` attribute
      (https://docs.python.org/2/library/stdtypes.html#file.softspace), which is used
      by the print statement to track its internal state. The documentation demands
      from file-like objects only that the attribute is writable and initialized to
      0. Method `file.write()` sets it to 0, but this is not documented.
      Historically, sys.stdout was replaced by an instance of the `winstdout` class,
      so it needed to behave exactly the same (the softspace fix was introduced in
      705278e70457). Nowadays we don’t replace sys.stdout and don’t use the print
      statement on `winstdout` instances, so we can safely drop it.
      ed58ecd59030
  16. Jul 17, 2020
  17. Jul 16, 2020
Loading