Modify ↓
Opened 17 years ago
Closed 17 years ago
#6731 closed defect (invalid)
Misleading docstring in trac.versioncontrol.api.Node.get_content_length
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | version control | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
The docstring for get_content_length mandates returning None for directories, but _estimate_changes expects an integer.
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Sorry but I don't see the problem:
_estimate_changes
is a local helper function, called from one place (line 544) and before calling it, there's an explicit check for the node's type.