Make the code compatible with the latest sphinx release (#3543)

1 file changed