~jameinel/meliae/test-1234

« back to all changes in this revision

Viewing changes to meliae/_loader.pyx

  • Committer: John Arbash Meinel
  • Author(s): Martin Pool
  • Date: 2013-05-19 06:13:48 UTC
  • Revision ID: john@arbash-meinel.com-20130519061348-r91e22vhsls2z60j
Fix a bug in Meliae when you don't have a JSON library.

Change it so we can handle when strings embed the " character.

Show diffs side-by-side

added added

removed removed

Lines of Context:
581
581
            else:
582
582
                # TODO: This isn't perfect, as it doesn't do proper json
583
583
                #       escaping
 
584
                if '"' in self.value:
 
585
                    raise AssertionError(self.value)
584
586
                value = '"value": "%s", ' % self.value
585
587
        else:
586
588
            value = ''