jaspernbrouwer / powerline-gitstatus

A Powerline segment for showing the status of a Git working copy
MIT License
384 stars 53 forks source link

Modified segments.py to support python3 #9

Closed adamk33n3r closed 9 years ago

adamk33n3r commented 9 years ago

Python3 introduced the bytes type which breaks this. I convert the stdout and stderr to strings before operating on them.

mzuniga commented 9 years ago

Excelent work Adam,

Thank you very much.

Greetings from Argentina!

El 18/09/15 a las 17:30, Adam Keenan escribió:

Python3 introduced the |bytes| type which breaks this. I convert the stdout and stderr to strings before operating on them.


    You can view, comment on, or merge this pull request online at:

https://github.com/jaspernbrouwer/powerline-gitstatus/pull/9

    Commit Summary

— Reply to this email directly or view it on GitHub https://github.com/jaspernbrouwer/powerline-gitstatus/pull/9.

jaspernbrouwer commented 9 years ago

Thanks!

adamk33n3r commented 9 years ago

No problem! I love powerline and this segment is just a really good fit. I made the mistake(?) of installing powerline in py3. I'm glad this was such an easy fix.

jaspernbrouwer commented 9 years ago

A new version is tagged and submitted to pypi!