diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-07-13 13:56:33 +0200 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-07-13 13:56:33 +0200 |
commit | 3e1a92f1643dff8eb53e2ae2c72e592be40a863c (patch) | |
tree | 3373ffffd95a4e9f3ef9f81bd4d263d62015b651 /grc/core/Param.py | |
parent | df86a6bf1ec0a1e628eba5e916859ba38c7c769c (diff) |
grc: use repr for string-like param type in generator (fixes #926)
Diffstat (limited to 'grc/core/Param.py')
-rw-r--r-- | grc/core/Param.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/grc/core/Param.py b/grc/core/Param.py index d155800c43..201032d010 100644 --- a/grc/core/Param.py +++ b/grc/core/Param.py @@ -642,10 +642,8 @@ class Param(Element): if t in ('string', 'file_open', 'file_save', '_multiline', '_multiline_python_external'): if not self._init: self.evaluate() - if self._stringify_flag: - return '"%s"' % v.replace('"', '\"') - else: - return v + return repr(v) if self._stringify_flag else v + # Vector types elif t in ('complex_vector', 'real_vector', 'float_vector', 'int_vector'): if not self._init: |