diff options
author | Vincent Breitmoser <look@my.amazin.horse> | 2018-01-06 18:14:51 +0100 |
---|---|---|
committer | Vincent Breitmoser <look@my.amazin.horse> | 2018-04-10 11:35:29 +0200 |
commit | f4284d943aee616f3100298634a113e51c8ab27e (patch) | |
tree | 709825a0ac1b64d2e8b9e70bd9ef713af680b09f /res | |
parent | Fix pep8 error on psycopg2cffi hack (diff) | |
download | synapse-f4284d943aee616f3100298634a113e51c8ab27e.tar.xz |
In DomainSpecificString, override __repr__ in addition to __str__
For some reason, string interpolation on a DomainSpecificString object like "%r" % (domainSpecificStringObj) fails under PyPy, because the default __repr__ implementation wants to iterate over the object. I'm not sure why that happens, but overriding __repr__ instead of __str__ fixes this problem, and is arguably the more appropriate thing to do anyways.
Diffstat (limited to 'res')
0 files changed, 0 insertions, 0 deletions