Skip to content

Commit a2e66e3

Browse files
committed
Comment about comparable version in parsing
1 parent 9ec7a58 commit a2e66e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readthedocs/projects/version_handling.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ def parse_version_failsafe(version_string):
1616
"""
1717
Parse a version in string form and return Version object.
1818
19-
If there is an error parsing the string, ``None`` is returned.
19+
If there is an error parsing the string
20+
or the version doesn't have a "comparable" version number,
21+
``None`` is returned.
2022
2123
:param version_string: version as string object (e.g. '3.10.1')
2224
:type version_string: str or unicode

0 commit comments

Comments
 (0)