summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2015-09-01 21:09:11 (GMT)
committerDirk Baechle <dl9obn@darc.de>2015-09-01 21:09:11 (GMT)
commita6a65ee80272d61fa2e09e33eeedfa0e08aed333 (patch)
tree97a60fd2100e008abd5bf6cee3d7fec00f4b00b2
parentd152e4ce442ae724084c9304c9e36e882fa5850d (diff)
downloadSCons-a6a65ee80272d61fa2e09e33eeedfa0e08aed333.zip
SCons-a6a65ee80272d61fa2e09e33eeedfa0e08aed333.tar.gz
SCons-a6a65ee80272d61fa2e09e33eeedfa0e08aed333.tar.bz2
- added "suffix" attribute to backward compat layer (getattr) for Node.FS entries
-rw-r--r--src/engine/SCons/Node/FS.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py
index a16fde0..a3db8fe 100644
--- a/src/engine/SCons/Node/FS.py
+++ b/src/engine/SCons/Node/FS.py
@@ -664,8 +664,8 @@ class Base(SCons.Node.Node):
""" Together with the node_bwcomp dict defined below,
this method provides a simple backward compatibility
layer for the Node attributes 'abspath', 'labspath',
- 'path', 'tpath' and 'path_elements'. These Node attributes
- used to be directly available in v2.3 and earlier, but
+ 'path', 'tpath', 'suffix' and 'path_elements'. These Node
+ attributes used to be directly available in v2.3 and earlier, but
have been replaced by getter methods that initialize the
single variables lazily when required, in order to save memory.
The redirection to the getters lets older Tools and
@@ -948,7 +948,8 @@ node_bwcomp = {'abspath' : Base.get_abspath,
'labspath' : Base.get_labspath,
'path' : Base.get_internal_path,
'tpath' : Base.get_tpath,
- 'path_elements' : Base.get_path_elements}
+ 'path_elements' : Base.get_path_elements,
+ 'suffix' : Base.get_suffix}
class Entry(Base):
"""This is the class for generic Node.FS entries--that is, things