matplotlib.text.get_rotation()#

... is deprecated with no replacement. Copy the original implementation if needed.