This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
ext(newext='')
public
Replace the file extension with newext. If there is no extension
on the string, append the new
extension to the end. If the new
extension is not given, or is the empty string, remove any existing
extension.