Skip to content

Drop Python 2 compatible code - #233

Merged
Jiashuo Li (jiasli) merged 1 commit into
microsoft:masterfrom
jiasli:drop-py2
Feb 2, 2021
Merged

Drop Python 2 compatible code#233
Jiashuo Li (jiasli) merged 1 commit into
microsoft:masterfrom
jiasli:drop-py2

Conversation

@jiasli

@jiasli Jiashuo Li (jiasli) commented Jan 27, 2021

Copy link
Copy Markdown
Contributor

Drop Python 2 compatible code by:

@yonzhan

Copy link
Copy Markdown
Collaborator

Drop Python 2

@yonzhan Yong Zhang (yonzhan) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread knack/output.py
if not isinstance(output, text_type):
output = u(str(output))
if not isinstance(output, str):
output = str(output)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unicode is already the default in Python 3.

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.

4 participants