Edgewall Software
Modify

Opened 5 weeks ago

Closed 5 weeks ago

#13906 closed defect (fixed)

DeprecationWarning: os.path.commonprefix() is deprecated since Python 3.15

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Milestone: 1.6.1
Component: general Version: 1.6
Severity: normal Keywords:
Cc: Branch:
Release Notes:

Replaced with os.path.commonpath() or own implementation instead of os.path.commonprefix() deprecated since Python 3.15.

API Changes:
Internal Changes:

Description

trac/attachment.py:979: DeprecationWarning: os.path.commonprefix() is deprecated. Use os.path.commonpath() for longest path prefix.
  commonprefix = os.path.commonprefix([self.env.attachments_dir, path])
$ git grep '\<commonprefix('
trac/attachment.py:        commonprefix = os.path.commonprefix([self.env.attachments_dir, path])
trac/mimeview/patch.py:                    commonprefix = ''.join(os.path.commonprefix(
trac/mimeview/patch.py:                    commonsuffix = ''.join(os.path.commonprefix(
trac/versioncontrol/web_ui/changeset.py:            return '/'.join(os.path.commonprefix([f.split('/')
trac/web/chrome.py:                if os.path.commonprefix([dir, path]) != dir:

Attachments (0)

Change History (1)

comment:1 by Jun Omae, 5 weeks ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Fixed in [17955] and merged in [17956].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.