[Pysys-commits] SF.net SVN: pysys:[962] branches/py23
Brought to you by:
ben-spiller,
moraygrieve
From: <ben...@us...> - 2018-06-02 21:53:52
|
Revision: 962 http://sourceforge.net/p/pysys/code/962 Author: ben-spiller Date: 2018-06-02 21:53:46 +0000 (Sat, 02 Jun 2018) Log Message: ----------- since python 3 processes text files using unicode strings not byte strings we really need a way to customize the encoding used for this (e.g. XML files are almost always in UTF-8 not the default OS locale); I've done this in a backwards compatible way so files are opened the same way for both python 2 and 3 unless the user chooses to specify an encoding using the encoding= parameter or globally (since that could get tiresome quicky!) using getDefaultFileEncoding. Tests PySys_internal_082 and 083 cover the new functionality as well as checking current functionality behaves the same way Modified Paths: -------------- branches/py23/pysys/basetest.py branches/py23/pysys/process/user.py branches/py23/pysys/unit/pyunit.py branches/py23/pysys/utils/filediff.py branches/py23/pysys/utils/filegrep.py branches/py23/pysys/utils/filereplace.py branches/py23/pysys/utils/linecount.py branches/py23/pysys/utils/pycompat.py branches/py23/pysys-dist/pysys-release.txt branches/py23/pysys-examples/internal/testcases/PySys_internal_082/pysystest.xml branches/py23/pysys-examples/internal/testcases/PySys_internal_082/run.py Added Paths: ----------- branches/py23/pysys-examples/internal/testcases/PySys_internal_083/ branches/py23/pysys-examples/internal/testcases/PySys_internal_083/Input/ branches/py23/pysys-examples/internal/testcases/PySys_internal_083/Reference/ branches/py23/pysys-examples/internal/testcases/PySys_internal_083/pysystest.xml branches/py23/pysys-examples/internal/testcases/PySys_internal_083/run.py This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |