Python errors `module 'string' has no attribute 'join'` when doing TernRename #154

Closed
xc1427 opened this Issue Dec 17, 2016 · 2 comments

Projects

None yet

2 participants

@xc1427
xc1427 commented Dec 17, 2016 edited

I am using windows 10 and vim 8.0 64bit.
Here is the screenshot:
aa
I am totally sure it is something related to difference between python 2 and python3.
Actually, no errors within python 2.
But in case of python3, "".join(lines) should be the correct way.

@marijnh marijnh added a commit that referenced this issue Dec 17, 2016
@marijnh marijnh Fix Python3-incompatible method call
Issue #154
8364d69
@marijnh
Member
marijnh commented Dec 17, 2016

Python 2.7 seems to also support "".join. Does attached patch help for you?

@xc1427
xc1427 commented Dec 18, 2016

Python 2.7 seems to also support "".join. Does attached patch help for you?

Yes. The patch solves the problem. Effectively, Python 2.7 also supports "".join.

@marijnh marijnh closed this Dec 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment