diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-11 11:51:29 (GMT) |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-11 11:51:29 (GMT) |
commit | e1aa8d2b2d64eb147cedc24016c38f209d9d397f (patch) | |
tree | d3f10cbdd1b20e7e881585dead0f7f3fa7512edd /src/script/scons-time.py | |
parent | 055c8046afce036fdfad4bc8d60e4059da148f7d (diff) | |
download | SCons-e1aa8d2b2d64eb147cedc24016c38f209d9d397f.zip SCons-e1aa8d2b2d64eb147cedc24016c38f209d9d397f.tar.gz SCons-e1aa8d2b2d64eb147cedc24016c38f209d9d397f.tar.bz2 |
Remove 'U' flag to open() which is deprecated.
Diffstat (limited to 'src/script/scons-time.py')
-rw-r--r-- | src/script/scons-time.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/scons-time.py b/src/script/scons-time.py index c788e50..f12280c 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) |