summaryrefslogtreecommitdiff
path: root/kafka/producer/kafka.py
diff options
context:
space:
mode:
authorlukeWx <4403510+lukekingbru@users.noreply.github.com>2017-12-07 13:59:58 -0800
committerDana Powers <dana.powers@gmail.com>2017-12-07 13:59:58 -0800
commit009290ddd5d4616d70bff93f841e773af8b22750 (patch)
treedf366e68ddab543fbc71e4977d35d4a5ef1bf8d2 /kafka/producer/kafka.py
parent5d1b13ef2812ddfe619495178f41e57b1fb640df (diff)
downloadkafka-python-009290ddd5d4616d70bff93f841e773af8b22750.tar.gz
use python standard max value (#1303)
Diffstat (limited to 'kafka/producer/kafka.py')
-rw-r--r--kafka/producer/kafka.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/producer/kafka.py b/kafka/producer/kafka.py
index 646e773..5d32b13 100644
--- a/kafka/producer/kafka.py
+++ b/kafka/producer/kafka.py
@@ -437,7 +437,7 @@ class KafkaProducer(object):
return
if timeout is None:
# threading.TIMEOUT_MAX is available in Python3.3+
- timeout = getattr(threading, 'TIMEOUT_MAX', 999999999)
+ timeout = getattr(threading, 'TIMEOUT_MAX', float('inf'))
if getattr(threading, 'TIMEOUT_MAX', False):
assert 0 <= timeout <= getattr(threading, 'TIMEOUT_MAX')
else: