glyph / python-docstring-mode

Emacs minor-mode for editing Python docstrings.
MIT License
70 stars 22 forks source link

Python 3 💀 #11

Closed hynek closed 8 years ago

hynek commented 8 years ago

When my Emacs has activated an Python 3 virtualenv, python-docstring-mode stops working:

"""(most recent call last):
  File "/Users/hynek/.emacs.d/docstring_wrap.py", line 543, in <module>
    indata = sys.stdin.read().decode("utf-8")
AttributeError: 'str' object has no attribute 'decode'
"""

(there’s a few more errors but it seems manageable)

glyph commented 8 years ago

Huh. I tried to be mindful of str/bytes stuff, sorry :-. What even is a stdin.

glyph commented 8 years ago

The virtualenv issue should be addressed by #14 and the broader philosophical issue is at least touched on by #12 .

glyph commented 8 years ago

Going to mark as fixed by #14 for now.