Jingchao Hu
Jingchao Hu
trying to pip install cuisine in py3 failed with ``` Exception in thread Thread-1: Traceback (most recent call last): File "/Users/ob/.pythonbrew/pythons/Python-3.3.0/lib/python3.3/threading.py", line 639, in _bootstrap_inner self.run() File "/Users/ob/.pythonbrew/pythons/Python-3.3.0/lib/python3.3/threading.py", line 596,...
I'm going to introduce lettuce to our new test guy, but found the official site hard to navigate, a lot of "`ref:overview`" are exposed in the index page, very few...
## 重现步骤 (Reproducing) ```python wx = WeChatClient(appid, appsecret) wx.material.add('image', '中文图片.jpg') ``` ## 问题实质 问题的实质是微信服务器端在解析multipart时不支持rfc2231格式的编码,而requests包发送的正是这种格式。 在文件名是中文时,比如"中文.jpg", - requests请求的数据是 `filename*=utf-8''%E4%B8%AD%E6%96%87.jpg` - 而curl请求的数据是 `filename="\\344\\270\\255\\346\\226\\207.jpg"` ## Workaround 我暂时的workaround是monkey patch编码部分 ```python import six import string...
Currently sleepy.mongoose works synchronously, it blocks on every request This patch is the minimum sync -> async change, using TheadingMixIn to process request in individual threads.
In stream.py, seek function is ```python3 def seek(self, offset: int, whence: int = 0) -> int: # noqa: C901 """Seek the file object.""" if whence == 0: loc = offset...