gh-99482: remove jython compatibility parts from stdlib and tests
#99484
+136
−234
jython compatibility parts from stdlib and tests
#99484