Skip to content

some python 3 compatibility#358

Closed
pohmelie wants to merge 1 commit intokivy:masterfrom
pohmelie:master
Closed

some python 3 compatibility#358
pohmelie wants to merge 1 commit intokivy:masterfrom
pohmelie:master

Conversation

@pohmelie
Copy link
Copy Markdown

@pohmelie pohmelie commented Apr 6, 2015

No description provided.

Comment thread src/build.py
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just wondering open works in 2 and 3 so why do we even need file ?
in fact we could probably do just these two lines ? but i am curious if there is a reason for file

with open(dest, 'wb') as f:
f.write(text.encode('utf-8'))

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I don't really know about 2, but I think you are 99% right. My way was "not to brake", so I just turned off my mind in version 2 branch of this if statement 😇

@tito
Copy link
Copy Markdown
Member

tito commented May 16, 2015

This has been fixed in another pr, thanks anyway :)

@tito tito closed this May 16, 2015
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