summaryrefslogtreecommitdiff
path: root/grc/core/Param.py
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-07-25 08:33:08 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2016-07-25 08:33:08 -0700
commit38be5bcc7928dd5f9ff19277c2bb12a3972e4c9a (patch)
treedb4dfe18cab09c213043922eee06bbb0e56a0f53 /grc/core/Param.py
parent8843ffdf4b10c47acf843133af9491ab15ac72d4 (diff)
parent1c122cbb5cdb1a979fc60e81646a39cbe7b89adf (diff)
Merge branch 'master' into next
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 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: