• R/O
  • SSH

xtab: 提交

Default repository for xtab.py


Commit MetaInfo

修訂0fb622cbfa0244195f5b9352fe2ee437cc58f39b (tree)
時間2019-09-17 23:46:34
作者Dreas Nielsen <dnielsen@inte...>
CommiterDreas Nielsen

Log Message

Eliminated extra newline when running under Python 3 on Windows.

Change Summary

差異

diff -r 540e3e292b79 -r 0fb622cbfa02 CHANGELOG.rst
--- a/CHANGELOG.rst Tue Mar 19 21:39:47 2019 -0700
+++ b/CHANGELOG.rst Tue Sep 17 07:46:34 2019 -0700
@@ -1,6 +1,7 @@
11 ========== ========== =================================================================================
22 Date Version Features
33 ========== ========== =================================================================================
4+2019-09-17 1.0.1 Eliminated extra newline under Python 3 on Windows.
45 2019-03-19 1.0.0 Modified to run under both Python 2 and Python 3.
56 2018-08-26 0.10.2 Documentation revisions.
67 2018-08-21 0.10.1 Modified to delete the error message file if it was created but no errors occurred.
diff -r 540e3e292b79 -r 0fb622cbfa02 setup.py
--- a/setup.py Tue Mar 19 21:39:47 2019 -0700
+++ b/setup.py Tue Sep 17 07:46:34 2019 -0700
@@ -1,7 +1,7 @@
11 from distutils.core import setup
22
33 setup(name='xtab',
4- version='1.0.0',
4+ version='1.0.1',
55 description="Crosstabulates data in a text file.",
66 author='Dreas Nielsen',
77 author_email='dreas.nielsen@gmail.com',
diff -r 540e3e292b79 -r 0fb622cbfa02 xtab/xtab.py
--- a/xtab/xtab.py Tue Mar 19 21:39:47 2019 -0700
+++ b/xtab/xtab.py Tue Sep 17 07:46:34 2019 -0700
@@ -43,8 +43,8 @@
4343 #=====================================================================================
4444
4545
46-_version = "1.0.0"
47-_vdate = "2019-03-19"
46+_version = "1.0.1"
47+_vdate = "2019-09-17"
4848
4949 import sys
5050 import os
@@ -188,7 +188,7 @@
188188 if sys.version_info < (3,0,0):
189189 outfile = open(outfilename, "wb") # The Py2 csv module adds an extra <CR> if "wt" is specified
190190 else:
191- outfile = open(outfilename, "w")
191+ outfile = open(outfilename, "w", newline='')
192192 csvout = csv.writer(outfile)
193193 reportable_errors = 0
194194
Show on old repository browser