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 |
||
| 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 , 5 weeks ago
| Release Notes: | modified (diff) |
|---|---|
| Resolution: | → fixed |
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.



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