diff --git a/CHANGELOG.md b/CHANGELOG.md index 76a568f32..c0903172e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 The intended audience of this file is for py42 consumers -- as such, changes that don't affect how a consumer would use the library (e.g. adding unit tests, updating documentation, etc) are not captured here. + +## 0.4.2 - 2020-03-13 + +### Fixed + +- Bug where encoding would cause an error when opening files on python2. + ## 0.4.1 - 2020-03-13 ### Fixed @@ -16,7 +23,6 @@ how a consumer would use the library (e.g. adding unit tests, updating documenta - Bug where `profile show` indicated a password was set for a different profile. - We now validate credentials when setting a password. - ### Changed - Date inputs are now required to be in quotes when they include a time. diff --git a/src/code42cli/__version__.py b/src/code42cli/__version__.py index 3d26edf77..df1243329 100644 --- a/src/code42cli/__version__.py +++ b/src/code42cli/__version__.py @@ -1 +1 @@ -__version__ = "0.4.1" +__version__ = "0.4.2" diff --git a/src/code42cli/compat.py b/src/code42cli/compat.py index 9a94559a9..29b9c6872 100644 --- a/src/code42cli/compat.py +++ b/src/code42cli/compat.py @@ -15,11 +15,14 @@ from urlparse import urljoin, urlparse str = unicode + import io + open = io.open import repr as reprlib else: from urllib.parse import urljoin, urlparse str = str + open = open import reprlib diff --git a/src/code42cli/util.py b/src/code42cli/util.py index 81fb48136..0df4c3a8a 100644 --- a/src/code42cli/util.py +++ b/src/code42cli/util.py @@ -2,6 +2,7 @@ import sys from os import path, makedirs +from code42cli.compat import open def get_input(prompt):