Idlelib: silence two buildbot Deprecation Warnings with better code.
Silence deprecation warning in sunau.py