Skip to content

pmt.py does not escape control sequences, when printing to the output module #4

Description

@RomanSaveljev

I am running PyModel based JSON generator. We may have various control sequences in JSON and the model will escape them, when writing the output. However, the generated module source code does not respect them.

The following patch helped me:

f.write('    (%s, %s, %s),\n' % (aname, args, repr(qResult[1:-1])))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions