Skip to content

Commit 6be8556

Browse files
committed
remove: dead workaround for CPython bug #10923 (fixed in 3.3)
The workaround pre-loaded the UTF-8 encoding module to avoid a deadlock when importing from multiple threads. This bug was fixed in Python 3.3.
1 parent 3e97d1a commit 6be8556

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

cassandra/cluster.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,6 @@ def _connection_reduce_fn(val,import_fn):
179179
raise DependencyException("Exception loading connection class dependencies", excs)
180180
DefaultConnection = conn_class
181181

182-
# Forces load of utf8 encoding module to avoid deadlock that occurs
183-
# if code that is being imported tries to import the module in a seperate
184-
# thread.
185-
# See http://bugs.python.org/issue10923
186-
"".encode('utf8')
187-
188182
log = logging.getLogger(__name__)
189183

190184

0 commit comments

Comments
 (0)