]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
review, suggest a change
authorsmcv <smcv@web>
Mon, 30 Jun 2014 09:49:44 +0000 (05:49 -0400)
committeradmin <admin@branchable.com>
Mon, 30 Jun 2014 09:49:44 +0000 (05:49 -0400)
doc/bugs/pythonproxy-utf8_again.mdwn

index 14d5cb98e6e51ec2dd6baaddbeef3e3e5dd49aa1..b5564d6c173e95ee267b2a19782ef1ca15e8c1d2 100644 (file)
@@ -34,3 +34,15 @@ patch.
 > it seems to me that the issue is related to the way exceptions are encoded.
 >
 > the suggested patch still applies and solves the issue. --[[chrysn]]
+
+>> In this patch band:
+>>
+>>     -        xml = _IkiWikiExtPluginXMLRPCHandler._read(in_fd).decode('utf8')
+>>     +        response = _IkiWikiExtPluginXMLRPCHandler._read(in_fd)
+>>     +        if isinstance(response, unicode):
+>>     +            xml = response.encode('utf8')
+>>
+>> I think you mean `response.decode`, not `response.encode`.
+>>
+>> Other than that it looks good to me. I like the use of `repr` in debug
+>> messages. --[[smcv]]