Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion retrying.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@


# sys.maxint / 2, since Python 3.2 doesn't have a sys.maxint...
MAX_WAIT = 1073741823
try:
MAX_WAIT = sys.maxint / 2
except AttributeError:
MAX_WAIT = 1073741823


def _retry_if_exception_of_type(retryable_types):
Expand Down