Skip to content

Update check/Python 3: convert update check resource from bytes to Unicode - #9837

Merged
michaelDCurran merged 1 commit into
nvaccess:threshold_py3_stagingfrom
josephsl:py3_updateDecodeRes
Jun 28, 2019
Merged

Update check/Python 3: convert update check resource from bytes to Unicode#9837
michaelDCurran merged 1 commit into
nvaccess:threshold_py3_stagingfrom
josephsl:py3_updateDecodeRes

Conversation

@josephsl

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #9819

Summary of the issue:

Update check resource is presented as bytes-like object.

Description of how this pull request fixes the issue:

Convert resource to Unicode before splitting into key:val pairs.

Testing performed:

Tested to make sure update check facility returns update check resource as before and presents appropriate message.

Known issues with pull request:

None

Change log entry:

None

…s make it Unicode. Re nvaccess#9819.

Update check resource is encoded as bytes, causing a type error to be thrown if trying to make a key:val out of it. Thus convert this into Unicode before splitting into key:val.
@josephsl
josephsl requested a review from michaelDCurran June 28, 2019 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants