[1.6.x] Fixed Python 2.6 compatability for 3ec368014d0d74e14a7ed98ccfd638ffe0e62863.