diff options
author | Joseph Myers <josmyers@redhat.com> | 2024-01-10 13:02:16 +0000 |
---|---|---|
committer | Joseph Myers <josmyers@redhat.com> | 2024-01-10 13:02:16 +0000 |
commit | 9da45337e4fcaa710e849e8c6baf22341c059e00 (patch) | |
tree | 0939864f5e199327e206c5ce9ea510a34caac4a5 /elf/ifuncmain5pie.c | |
parent | 781427354068535f159388776da4f21043e237a8 (diff) | |
download | glibc-9da45337e4fcaa710e849e8c6baf22341c059e00.zip glibc-9da45337e4fcaa710e849e8c6baf22341c059e00.tar.gz glibc-9da45337e4fcaa710e849e8c6baf22341c059e00.tar.bz2 |
Fix deprecated utcnow() usage in build-many-glibcs.py
Running build-many-glibcs.py with Python 3.12 or later produces a
warning:
build-many-glibcs.py:566: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
build_time = datetime.datetime.utcnow()
Replace with datetime.datetime.now(datetime.timezone.utc) (the
datetime.UTC constant is new in 3.11, so not suitable for use in this
script at present).
Diffstat (limited to 'elf/ifuncmain5pie.c')
0 files changed, 0 insertions, 0 deletions