summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-13 15:02:49 +0000
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-13 15:02:49 +0000
commit2ad1a5a8166d4c4449dd5e111c7d63e16616fa1b (patch)
tree1d0f23412abf8dcf38513c54410a3bf78ba4f54e /bin
parenta7576d9d63fef6f91124feb25e1c4f3ea3496d91 (diff)
parent63f4c3b24e101450ae1dcb39aa7e1c68ffc997d3 (diff)
downloadscons-2ad1a5a8166d4c4449dd5e111c7d63e16616fa1b.tar.gz
Merged in rodrigc/scons (pull request #409)
Remove 'U' flag to open()
Diffstat (limited to 'bin')
-rw-r--r--bin/SConsDoc.py2
-rw-r--r--bin/SConsExamples.py4
-rw-r--r--bin/scons-proc.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/bin/SConsDoc.py b/bin/SConsDoc.py
index 2fe4f73e..d5666443 100644
--- a/bin/SConsDoc.py
+++ b/bin/SConsDoc.py
@@ -598,7 +598,7 @@ class SConsDocTree:
# Create xpath context
self.xpath_context = self.doc.xpathNewContext()
# Register namespaces
- for key, val in list(self.nsmap.items()):
+ for key, val in self.nsmap.items():
self.xpath_context.xpathRegisterNs(key, val)
def __del__(self):
diff --git a/bin/SConsExamples.py b/bin/SConsExamples.py
index a86968d1..dd9bfaf8 100644
--- a/bin/SConsExamples.py
+++ b/bin/SConsExamples.py
@@ -267,7 +267,7 @@ def ensureExampleOutputsExist(dpath):
os.mkdir(generated_examples)
examples = readAllExampleInfos(dpath)
- for key, value in list(examples.items()):
+ for key, value in examples.items():
# Process all scons_output tags
for o in value.outputs:
cpath = os.path.join(generated_examples,
@@ -305,7 +305,7 @@ def createAllExampleOutputs(dpath):
examples = readAllExampleInfos(dpath)
total = len(examples)
idx = 0
- for key, value in list(examples.items()):
+ for key, value in examples.items():
# Process all scons_output tags
print("%.2f%s (%d/%d) %s" % (float(idx + 1) * 100.0 / float(total),
perc, idx + 1, total, key))
diff --git a/bin/scons-proc.py b/bin/scons-proc.py
index 0747b2cc..e09c8538 100644
--- a/bin/scons-proc.py
+++ b/bin/scons-proc.py
@@ -104,7 +104,7 @@ Link_Entities_Header = """\
class SCons_XML(object):
def __init__(self, entries, **kw):
self.values = entries
- for k, v in list(kw.items()):
+ for k, v in kw.items():
setattr(self, k, v)
def fopen(self, name):