Skip to content

Bugfix/encoding py2 #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/code42cli/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.1"
__version__ = "0.4.2"
3 changes: 3 additions & 0 deletions src/code42cli/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions src/code42cli/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import sys
from os import path, makedirs
from code42cli.compat import open


def get_input(prompt):
Expand Down