Python-fu misses sys.stdout.flush
Environment/Versions
- GIMP version: 2.99.13 / commit b3332bb9
- Package: nightly Flatpak
- Operating System: Linux / Flatpak
Description of the bug
In python-fu, sys.stdout misses the flush method
Reproduction
Always
Reproduction steps:
- start python-fu
- import sys; sys.stdout.flush()
Expected result: Nothing, as in this specific case the output is empty
Actual result:
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'Output' object has no attribute 'flush'
Additional information
Should be there, according to the python documentation, c.f.: https://docs.python.org/3.9/library/sys.html?highlight=stdout#sys.stdout https://docs.python.org/3.9/glossary.html#term-file-object https://docs.python.org/3.9/library/io.html#module-io
Used by many useful non-gimp python modules
Also in 2.99.10, .12 and presumably any 2.99 version with python-fu
Thanks!