Update use of deque in _frame_iterator _frame_iterator has an old comment about some hand-written code that was needed when supporting Python 2.6. This patch simplifies the code by using a couple of features of collections.deque.