Skip to content

Commit

Permalink
save timeouts in ordered dict instead of dict
Browse files Browse the repository at this point in the history
  • Loading branch information
abranches committed Mar 27, 2014
1 parent 43904ff commit 7958394
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pika/adapters/select_connection.py
Expand Up @@ -5,6 +5,7 @@
import logging
import select
import time
from collections import OrderedDict

from pika.adapters.base_connection import BaseConnection

Expand Down Expand Up @@ -203,7 +204,7 @@ def __init__(self, fileno, handler, events, state_manager):
self.events = events
self.open = True
self._handler = handler
self._timeouts = dict()
self._timeouts = OrderedDict()
self._manage_event_state = state_manager

def add_timeout(self, deadline, callback_method):
Expand Down

2 comments on commit 7958394

@eandersson
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks Python 2.6 support.

@eandersson
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OrderDict is only available in 2.7, not 2.6.

Please sign in to comment.