[2.7] bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. by ned-deily · Pull Request #12034 · python/cpython
Note, we can't use the isAquaTk() check here on 2.7 because macosxSupport.setupApp hasn't been called yet to initialize things; in 3.x, the check no longer depends on the setup being called first. But just unconditionally skipping on macOS is fine since, when running under X on macOS, IDLE does not show up in the dock as a separate icon anyway.