lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.8-2-gab8a871

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum branch master updated. 1.8-2-gab8a871



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".

The branch, master has been updated
       via  ab8a87108ea38fff18d4c4b2877c0bbe18f5bacb (commit)
      from  1304122fcf85ed25ebbfccd426dfc28f00eeb41c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-stdnum/commit/?id=ab8a87108ea38fff18d4c4b2877c0bbe18f5bacb

commit ab8a87108ea38fff18d4c4b2877c0bbe18f5bacb
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Sat Jan 6 16:27:04 2018 +0100

    Update long description in compatible way
    
    This ensures that the README is read correctly on all supported Python
    interpreters.
    
    Fixes 1304122

diff --git a/setup.py b/setup.py
index 4182804..496e57b 100755
--- a/setup.py
+++ b/setup.py
@@ -34,8 +34,8 @@ if 'sdist' in sys.argv:
 
 base_dir = os.path.dirname(__file__)
 
-with open(os.path.join(base_dir, 'README'), 'r', encoding='utf-8') as fp:
-    long_description = fp.read()
+with open(os.path.join(base_dir, 'README'), 'rb') as fp:
+    long_description = fp.read().decode('utf-8')
 
 setup(name='python-stdnum',
       version=stdnum.__version__,

-----------------------------------------------------------------------

Summary of changes:
 setup.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
python-stdnum
-- 
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
https://lists.arthurdejong.org/python-stdnum-commits/