fixes exception in python 2.x
authorSteven Tobin <steventtobin (at) gmail.com>
Mon, 26 Feb 2018 11:13:01 +0000 (11:13 +0000)
committerSteven Tobin <steventtobin (at) gmail.com>
Mon, 26 Feb 2018 11:13:01 +0000 (11:13 +0000)
README.rst
setup.py
xkcdpass/xkcd_password.py

index 4a773203f0520b709c1ee4cd7c5ff264e45aa8f9..8d260a129065cbc6dceca5992ca8c5a2890b8b09 100644 (file)
@@ -183,6 +183,7 @@ or setting the appropriate environment variable::
 
 Changelog
 =========
+- **1.16.2** Fix exception on UTF8 open with python 2.x
 - **1.16.1** Fix encoding issue on Windows
 - **1.16.0** Case of words in passphrase can now be set using `--case`
 - **1.15.1** Added more information about supported languages
index 430c7a844478c87d4b98a37b4873da5a2c76f904..12b001e57424d78731ef4d3a9d52814aa334f9f4 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup
 
 setup(
     name='xkcdpass',
-    version='1.16.1',
+    version='1.16.2',
     author='Steven Tobin',
     author_email='steventtobin@gmail.com',
     url='https://github.com/redacted/XKCD-password-generator',
index 823b51469ec4cb73175866d35c365f624563262e..81b0b26596c014b4a7c07dec081859a9c0e8532a 100755 (executable)
@@ -11,6 +11,8 @@ import random
 import re
 import sys
 
+from io import open
+
 __LICENSE__ = """
 Copyright (c) 2011 - 2018, Steven Tobin and Contributors.
 All rights reserved.
git clone https://git.99rst.org/PROJECT