瀏覽代碼

Update: try for issue #30 works for python >= 2.7.3

Matthew Wang 11 年之前
父節點
當前提交
2d2815a228
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      cdiff.py

+ 2
- 2
cdiff.py 查看文件

@@ -252,7 +252,7 @@ class PatchStreamForwarder(object):
252 252
             self._in.write(line.encode('utf-8'))
253 253
         except StopIteration:
254 254
             # XXX: close() does not notify select() for EOF event in python
255
-            # 2.x, one of these two interface must be buggy
255
+            # < 2.7.3, one of these two interface must be buggy
256 256
             #
257 257
             # Sending EOF manually does not work either
258 258
             #
@@ -273,7 +273,7 @@ class PatchStreamForwarder(object):
273 273
                 self._forward_line()
274 274
             else:
275 275
                 #print('no data to read and istream closed')
276
-                # XXX: `close` or `select` seems buggy in python 2.x, select
276
+                # XXX: `close` or `select` seems buggy in python < 2.7.3, select
277 277
                 # does not tell ready event on _translator.stdout anymore once
278 278
                 # the stdin is closed.  Just add a timeout here to detect, when
279 279
                 # that happen the remaining in output stream will be discarded