With python2.6 collections.deque does not support maxlen attribute
So we inherit the collections.deque and add a property maxlen to
make it work in 2.6 We use property and not a instance variable
maxlen because 2.7 has maxlen as a readonly property
Closes-Bug: #1500532
Reviewed: https:/ /review. opencontrail. org/20058 github. org/Juniper/ contrail- sandesh/ commit/ 68709776dfab515 825f4e75ac7f7d9 1eda6fb5ee
Committed: http://
Submitter: Zuul
Branch: R2.22.x
commit 68709776dfab515 825f4e75ac7f7d9 1eda6fb5ee
Author: arvindvis <email address hidden>
Date: Tue Sep 29 15:49:42 2015 -0700
With python2.6 collections.deque does not support maxlen attribute
So we inherit the collections.deque and add a property maxlen to
make it work in 2.6 We use property and not a instance variable
maxlen because 2.7 has maxlen as a readonly property
Closes-Bug: #1500532
Change-Id: Iab53ee65c1a419 5261da672ebcbd3 f663e4bb3e6