Fixed deprecation warning in python 2.6

Ignore-this: c77962040ac93647f773d975c0045278

darcs-hash:20091116145655-b22ec-22073051a48e82c535009286d0053760f86d4c25