diff options
author | Gabe Black <gabeblack@google.com> | 2017-05-05 18:05:36 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2017-05-08 08:54:33 +0000 |
commit | b043f37b67b370e723b7ea11e6c71204291b2bc6 (patch) | |
tree | ff9fbf47d098a6b952e34b843503fda833ae992a /util/checkpoint-tester.py | |
parent | c40ebea9f4188f8c1ecd04d022b4e7ca60b1d185 (diff) | |
download | gem5-b043f37b67b370e723b7ea11e6c71204291b2bc6.tar.xz |
scons: Replace str(foo.get_contents()) with foo.get_text_contents().
For Value() nodes, the get_contents() method and the get_text_contents()
method are just aliases to the same thing, both of which return a value
which has already been converted using str(). The str() which was included
explicitly in the SConscript was redundant, except that it showed that the
value from get_contents was being treated as a string. To avoid the
redundancy but to still leave a hint to the value's type, this change
converts those bits of code to use get_text_contents() and removes the
str().
Change-Id: I8f7da9b652f749e741b553c9a0e2248ae15ec3ca
Reviewed-on: https://gem5-review.googlesource.com/3084
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'util/checkpoint-tester.py')
0 files changed, 0 insertions, 0 deletions