Skip to content

Commit

Permalink
Fix default poller
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersson committed Sep 26, 2024
1 parent ee2fc78 commit 199bcd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amqpstorm/compatibility.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Python 2/3 Compatibility layer."""

import socket
import select
import sys

try:
Expand Down Expand Up @@ -41,7 +41,7 @@ class DummyException(Exception):


def get_default_poller():
if hasattr(socket, 'poll'):
if hasattr(select, 'poll'):
return 'poll'
return 'select'

Expand Down

0 comments on commit 199bcd2

Please sign in to comment.