From python 3.4 on, the 'U' mode of open has been deprecated.
According to this answer the 'U' has been replaced by the newline argument, that when set to None, the default, uses universal new line.
I have identified only three rU modes. Two in the readline function and one regarding svn.