Merge "Add missing information in docstring of validate_integer"

This commit is contained in:
Zuul 2018-01-07 05:01:17 +00:00 committed by Gerrit Code Review
commit d9ec025c39
1 changed files with 3 additions and 0 deletions

View File

@ -446,6 +446,9 @@ def validate_integer(value, name, min_value=None, max_value=None):
:param min_value: min_value of the integer
:param max_value: max_value of the integer
:returns: integer
:raises: ValueError if value is an invalid integer
.. versionadded:: 3.33
"""
try:
value = int(str(value))