summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-14 22:44:29 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-14 22:44:29 (GMT)
commit44fb9210fa89a8e7717848475efd4b62d6463eb2 (patch)
tree3b757216ddf5cb8d1fb642106139b763d9510208 /src/engine/SCons/Node
parentd2bd5c35b04a70cc4778bdf3fb7b1c9cc48cb2cb (diff)
downloadSCons-44fb9210fa89a8e7717848475efd4b62d6463eb2.zip
SCons-44fb9210fa89a8e7717848475efd4b62d6463eb2.tar.gz
SCons-44fb9210fa89a8e7717848475efd4b62d6463eb2.tar.bz2
move comment for method to docstring
Diffstat (limited to 'src/engine/SCons/Node')
-rw-r--r--src/engine/SCons/Node/FS.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py
index 907bc75..c3841eb 100644
--- a/src/engine/SCons/Node/FS.py
+++ b/src/engine/SCons/Node/FS.py
@@ -2659,10 +2659,12 @@ class File(Base):
def get_contents(self):
return SCons.Node._get_contents_map[self._func_get_contents](self)
- # This attempts to figure out what the encoding of the text is
- # based upon the BOM bytes, and then decodes the contents so that
- # it's a valid python string.
def get_text_contents(self):
+ """
+ This attempts to figure out what the encoding of the text is
+ based upon the BOM bytes, and then decodes the contents so that
+ it's a valid python string.
+ """
contents = self.get_contents()
# The behavior of various decode() methods and functions
# w.r.t. the initial BOM bytes is different for different