Replace open(filename, 'rU') by open(filename, 'r')
The U flag is no more used (but still accepted for backward compatibility).
diff --git a/Lib/site.py b/Lib/site.py
index fcfdbed..46fa53a 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -138,7 +138,7 @@
reset = 0
fullname = os.path.join(sitedir, name)
try:
- f = open(fullname, "rU")
+ f = open(fullname, "r")
except IOError:
return
with f:
@@ -385,7 +385,7 @@
for filename in self.__files:
filename = os.path.join(dir, filename)
try:
- fp = open(filename, "rU")
+ fp = open(filename, "r")
data = fp.read()
fp.close()
break