diff options
author | lukeWx <4403510+lukekingbru@users.noreply.github.com> | 2017-12-07 13:59:58 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2017-12-07 13:59:58 -0800 |
commit | 009290ddd5d4616d70bff93f841e773af8b22750 (patch) | |
tree | df366e68ddab543fbc71e4977d35d4a5ef1bf8d2 /kafka/producer/kafka.py | |
parent | 5d1b13ef2812ddfe619495178f41e57b1fb640df (diff) | |
download | kafka-python-009290ddd5d4616d70bff93f841e773af8b22750.tar.gz |
use python standard max value (#1303)
Diffstat (limited to 'kafka/producer/kafka.py')
-rw-r--r-- | kafka/producer/kafka.py | 2 |
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: |