[issue21027] difflib new cli interface
STINNER Victor
report at bugs.python.org
Thu May 15 00:34:37 CEST 2014
STINNER Victor added the comment:
$ ./python -m difflib -u a.py b.py
...
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='a.py' mode='r' encoding='UTF-8'>
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='b.py' mode='r' encoding='UTF-8'>
It looks like files are not closed.
I would prefer to have the unified output (-u) by default. I don't think that Python should mimick exactly UNIX tools.
tarfile has now a command line interface, but options are different. For example, it's -e to extract instead of -x.
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21027>
_______________________________________
More information about the Python-bugs-list
mailing list