code not work under 2.6 yet

any volunteers?:)