Skip to content
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

Python 3.6+ #49

Merged
merged 5 commits into from
Dec 13, 2020
Merged

Python 3.6+ #49

merged 5 commits into from
Dec 13, 2020

Conversation

eumiro
Copy link
Contributor

@eumiro eumiro commented Dec 12, 2020

Drop Python 3.5 support and modernize the code accordingly.

There are two occurrences of the flag variable. In the first case I changed it to bool and renamed to is_in_list (please change if you have better name).

In the second case in the get_initials method this variable is always 1 (True) and never changes and still is tested: https://github.com/lxneng/xpinyin/blob/master/src/xpinyin/__init__.py#L153-L166 Should I file an issue? The tests don't cover this.

@lxneng lxneng merged commit df3ef0d into lxneng:master Dec 13, 2020
@lxneng
Copy link
Owner

lxneng commented Dec 13, 2020

👍 Thanks

@eumiro eumiro deleted the py36plus branch December 13, 2020 10:47
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.

2 participants