Hugo


Patch
r1900882

r1900882 | danielsh | 2022-05-14 12:54:19 +0000 (Sat, 14 May 2022)

Replace a call to a function deprecated upstream.

The behaviour of ┬źConfigParser.readfp(foo)┬╗ has changed across Python versions
as follows:

- Python 3.1: readfp(foo) would repeatedly call foo.readline().

- Python 3.2 through 3.11: readfp(foo) iterates foo.

- Python 3.12: readfp itself would be removed (according to a deprecation
    warning that 3.10's readfp() emits).

Patch by: Hugo
Issue: SVN-4899 (in part)

* build/generator/gen_base.py
  (GeneratorBase.__init__): As above.