Changeset 3643 for trunk/lang/python


Ignore:
Timestamp:
May 10, 2013 8:53:33 AM (11 years ago)
Author:
clarksm
Message:

Make allowance for treatment of unicode strings created by the rapp module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/python/Rappture/tools.py

    r3184 r3643  
    3838                                close_fds=True)
    3939    else:
    40        commandArgs = shlex.split(command)
     40       try:
     41          commandStr = str(command)
     42       except UnicodeEncodeError:
     43          commandStr = unicode(command).encode('unicode_escape')
     44       commandArgs = shlex.split(commandStr)
    4145       child = subprocess.Popen(commandArgs,bufsize=BUFSIZ, \
    4246                                stdout=subprocess.PIPE, \
Note: See TracChangeset for help on using the changeset viewer.