summaryrefslogtreecommitdiff
path: root/grc/core/Param.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-08-09 21:15:56 +0200
committerSebastian Koslowski <koslowski@kit.edu>2016-08-09 21:18:29 +0200
commit8e2886dc6b45b4e3f68d84887f728483fd2d1538 (patch)
treee682bbea9e329c80ebc66233d58a01a1306bddbd /grc/core/Param.py
parentcbe1e43b0f0d1ee0d356b7110700400578855ac6 (diff)
parentfc1a6a88483120921936e415aba4d5d1a9b42d96 (diff)
Merge remote-tracking branch 'upstream/next' into gtk3
Diffstat (limited to 'grc/core/Param.py')
-rw-r--r--grc/core/Param.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/grc/core/Param.py b/grc/core/Param.py
index 5ac1745f95..6d947c3615 100644
--- a/grc/core/Param.py
+++ b/grc/core/Param.py
@@ -443,10 +443,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: