Removed
Link Here
|
1 |
https://gitlab.com/ita1024/waf/-/commit/68997828c850 |
2 |
|
3 |
--- waflib/ConfigSet.py.orig 2021-12-23 14:46:11 UTC |
4 |
+++ waflib/ConfigSet.py |
5 |
@@ -140,7 +140,7 @@ class ConfigSet(object): |
6 |
Utils.writef(filename,''.join(buf)) |
7 |
def load(self,filename): |
8 |
tbl=self.table |
9 |
- code=Utils.readf(filename,m='rU') |
10 |
+ code=Utils.readf(filename,m='r') |
11 |
for m in re_imp.finditer(code): |
12 |
g=m.group |
13 |
tbl[g(2)]=eval(g(3)) |
14 |
--- waflib/Context.py.orig 2021-12-23 14:46:11 UTC |
15 |
+++ waflib/Context.py |
16 |
@@ -109,7 +109,7 @@ class Context(ctx): |
17 |
cache[node]=True |
18 |
self.pre_recurse(node) |
19 |
try: |
20 |
- function_code=node.read('rU',encoding) |
21 |
+ function_code=node.read('r',encoding) |
22 |
exec(compile(function_code,node.abspath(),'exec'),self.exec_dict) |
23 |
finally: |
24 |
self.post_recurse(node) |
25 |
@@ -340,7 +340,7 @@ def load_module(path,encoding=None): |
26 |
pass |
27 |
module=imp.new_module(WSCRIPT_FILE) |
28 |
try: |
29 |
- code=Utils.readf(path,m='rU',encoding=encoding) |
30 |
+ code=Utils.readf(path,m='r',encoding=encoding) |
31 |
except EnvironmentError: |
32 |
raise Errors.WafError('Could not read the file %r'%path) |
33 |
module_dir=os.path.dirname(path) |