diff options
author | Bruno ReniƩ <brutasse@gmail.com> | 2014-08-29 15:23:48 +0200 |
---|---|---|
committer | Bruno ReniƩ <brutasse@gmail.com> | 2014-08-29 15:23:48 +0200 |
commit | 2a220e11003eb26971519a73e020d4759e2b3a31 (patch) | |
tree | 235104f553fd91d97b84acc07dec681a06b8b642 /kafka/conn.py | |
parent | 9c83b2bd764f494c3d3a074054914a2b5fd99328 (diff) | |
download | kafka-python-2a220e11003eb26971519a73e020d4759e2b3a31.tar.gz |
Fix more tests, only multiprocessing consumer ones remaining
Diffstat (limited to 'kafka/conn.py')
-rw-r--r-- | kafka/conn.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kafka/conn.py b/kafka/conn.py index 41cd424..aef0299 100644 --- a/kafka/conn.py +++ b/kafka/conn.py @@ -155,6 +155,10 @@ class KafkaConnection(local): return a new KafkaConnection object """ c = copy.deepcopy(self) + # Python 3 doesn't copy custom attributes of the threadlocal subclass + c.host = copy.copy(self.host) + c.port = copy.copy(self.port) + c.timeout = copy.copy(self.timeout) c._sock = None return c |