Project

General

Profile

Actions

Bug #1227

closed

generate_packets.py: DeprecationWarning: pathlib.PurePath.is_reserved()

Added by Marko Lindqvist 3 months ago. Updated 13 days ago.

Status:
Closed
Priority:
Normal
Category:
Bootstrap
Target version:
Start date:
01/27/2025
Due date:
% Done:

0%

Estimated time:

Description

[6/781] Generating packets_server with a custom command
/fast/freeciv/S3_2/builds/mall32/../../src/common/generate_packets.py:46: DeprecationWarning: pathlib.PurePath.is_reserved() is deprecated and scheduled for removal in Python 3.15. Use os.path.isreserved() to detect reserved paths on Windows.
if path.is_reserved() or not path.name:
[12/781] Generating packets_client with a custom command
/fast/freeciv/S3_2/builds/mall32/../../src/common/generate_packets.py:46: DeprecationWarning: pathlib.PurePath.is_reserved() is deprecated and scheduled for removal in Python 3.15. Use os.path.isreserved() to detect reserved paths on Windows.
if path.is_reserved() or not path.name:
[14/781] Generating packets_common with a custom command
/fast/freeciv/S3_2/builds/mall32/../../src/common/generate_packets.py:46: DeprecationWarning: pathlib.PurePath.is_reserved() is deprecated and scheduled for removal in Python 3.15. Use os.path.isreserved() to detect reserved paths on Windows.
if path.is_reserved() or not path.name:


Files

Actions #2

Updated by Alina Lenk 26 days ago

I would just remove the check entirely; it's unlikely to ever do anything in practice, and if it does, it only makes the script exit a little earlier; it's not preventing any actual issue that would have repercussions. I originally added it mostly just because it technically did something useful and was trivial to do while remaining platform-agnostic, not because it would be necessary.

Actions #4

Updated by Marko Lindqvist 13 days ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF