summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 03:51:29 -0800
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 03:51:29 -0800
commit14cd925a49bea1424ffea56fc0334c1f2a6d8aaa (patch)
treed3f10cbdd1b20e7e881585dead0f7f3fa7512edd /src/script
parente45ba445a1140cfa4d7836f54f2e6b8d9a5c7325 (diff)
downloadscons-14cd925a49bea1424ffea56fc0334c1f2a6d8aaa.tar.gz
Remove 'U' flag to open() which is deprecated.
Diffstat (limited to 'src/script')
-rw-r--r--src/script/scons-time.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/scons-time.py b/src/script/scons-time.py
index c788e50f..f12280c1 100644
--- a/src/script/scons-time.py
+++ b/src/script/scons-time.py
@@ -814,7 +814,7 @@ class SConsTimer(object):
self.title = a
if self.config_file:
- exec(open(self.config_file, 'rU').read(), self.__dict__)
+ exec(open(self.config_file, 'r').read(), self.__dict__)
if self.chdir:
os.chdir(self.chdir)
@@ -933,7 +933,7 @@ class SConsTimer(object):
self.title = a
if self.config_file:
- HACK_for_exec(open(self.config_file, 'rU').read(), self.__dict__)
+ HACK_for_exec(open(self.config_file, 'r').read(), self.__dict__)
if self.chdir:
os.chdir(self.chdir)
@@ -1053,7 +1053,7 @@ class SConsTimer(object):
object_name = args.pop(0)
if self.config_file:
- HACK_for_exec(open(self.config_file, 'rU').read(), self.__dict__)
+ HACK_for_exec(open(self.config_file, 'r').read(), self.__dict__)
if self.chdir:
os.chdir(self.chdir)