[issue23076] list(pathlib.Path().glob("")) fails with IndexError

2015-01-01 Thread liu chang
liu chang added the comment: hi pitrou, should we fix it in _make_selector(pattern_parts) function? origin code as: def _make_selector(pattern_parts): pat = pattern_parts[0] child_parts = pattern_parts[1:] if pat == '**': cls = _RecursiveWildcardSelector el

[issue23076] path.glob("") fails with IndexError

2014-12-17 Thread liu chang
liu chang added the comment: In[6]: pathlib.Path.glob("") Traceback (most recent call last): File "/home/liuchang/ENV3/lib/python3.4/site-packages/IPython/core/interactiveshell.py", line 2883, in run_code exec(code_obj, self.user_global_ns, self.user_ns)

[issue23056] tarfile raises an exception when reading an empty tar in streaming mode

2014-12-16 Thread liu chang
liu chang added the comment: a simple fix -- keywords: +patch Added file: http://bugs.python.org/file37465/fix-tar-23056.patch ___ Python tracker <http://bugs.python.org/issue23

[issue23056] tarfile raises an exception when reading an empty tar in streaming mode

2014-12-16 Thread liu chang
liu chang added the comment: 2232 def next(self): 2233 """Return the next member of the archive as a TarInfo object, when 2234TarFile is opened for reading. Return None if there is no more 2235available. 2236 """ 2237

[issue23064] pep8 asyncore.py

2014-12-16 Thread liu chang
New submission from liu chang: pep8 Lib/asycore.py. -- components: Library (Lib) files: pep8-asyncore.patch hgrepos: 287 keywords: patch messages: 232730 nosy: 畅.刘 priority: normal severity: normal status: open title: pep8 asyncore.py type: enhancement versions: Python 3.4 Added file