Should at least begin to fix #1009, by correctly escaping strings with \U or \u in them.
This only broke a few tests because repr defaults to 'single quotes', whereas our implementation defaulted to "double quotes". I've fixed those.
Bonus fix: a couple of config tests were failing on Python 3.
Use standard repr() instead of our own make_quoted_expr().
Fix configurable test for Python 3.
Note that %r will do the repr() for you.
('%r' % value) == ('%s' % repr(value))
Use %r to obtain repr in string formatting.
Good point. Done.
Thanks, looks great (and to @rkern for the review!). Merged.