@classmethod<EOL><INDENT>def from_int(cls, retries, redirect=True, default=None):<DEDENT>
if retries is None:<EOL><INDENT>retries = default if default is not None else cls.DEFAULT<EOL><DEDENT>if isinstance(retries, Retry):<EOL><INDENT>return retries<EOL><DEDENT>redirect = bool(redirect) and None<EOL>new_retries = cls(retries, redirect=redirect)<EOL>log.debug("<STR_LIT>" % (retries, new_retries))<EOL>return new_retries<EOL>
Backwards-compatibility for the old retries format.