summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2015-09-01 23:09:11 +0200
committerDirk Baechle <dl9obn@darc.de>2015-09-01 23:09:11 +0200
commita825718913cbad5c0bb0846c2cee2f5c876b760b (patch)
tree97a60fd2100e008abd5bf6cee3d7fec00f4b00b2
parent13347dff82754e520e42a22669bb8b7cd8cd6b2a (diff)
downloadscons-a825718913cbad5c0bb0846c2cee2f5c876b760b.tar.gz
- 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 a16fde03..a3db8fec 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