summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch
diff options
context:
space:
mode:
authorStanley Stanton <stanley.stanton@taitcommunications.com>2024-11-19 16:48:17 +1300
committerBruce Ashfield <bruce.ashfield@gmail.com>2024-11-27 21:27:38 +0000
commit450941a1b6df96285691e8c23d4f332d3c88a994 (patch)
treed77b1130ddb9ea5b87fd3daa706d18161bf3ebdc /recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch
parent7c78f4ef96020b702c027d179895c9f97179b4fc (diff)
downloadmeta-virtualization-450941a1b6df96285691e8c23d4f332d3c88a994.tar.gz
xen.inc: python 3.12: fix datetime deprecation warning
Parsing xen.inc with a host distro that provides python 3.12 (such as Ubuntu 24.04) generates the following deprecation warning: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC) This warning comes from the use of datetime.datetime.utcfromtimestamp() in get_build_time_vars. datetime.UTC seems to be a getter wrapper for datetime.timezone.utc, which is already available on older host distro python versions (I have tested only with python 3.10 provided by Ubuntu 22.04) so, opt to use that instead to prevent a breaking change. Signed-off-by: Stanley Stanton <stanley.stanton@taitcommunications.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch')
0 files changed, 0 insertions, 0 deletions