Changeset 5573 for branches/uq/lang


Ignore:
Timestamp:
May 19, 2015, 6:26:58 PM (9 years ago)
Author:
mmh
Message:

double-quote strings to make tcl happy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/uq/lang/python/Rappture/pyxml.py

    r5544 r5573  
    5454            val = ' '.join(map(str, val.ravel('F').tolist()))
    5555        elif type(val) == list or type(val) == tuple:
    56             val = ' '.join(map(str, (itertools.chain(*zip(*val)))))
     56            val = ' '.join(map(repr, (itertools.chain(*zip(*val)))))
     57            # we need the strings double quoted for tcl
     58            val = val.replace("'", '"')
    5759        self.lib.put(path, val, **kwargs)
    5860
Note: See TracChangeset for help on using the changeset viewer.