1. Tarek Ziadé
  2. distribute
  3. Issues
Issue #284 new

get_exe_prefixes passes bytes to yield_lines

Anonymous created an issue

on python 3.2, this line crashes because z.read returns bytes: for pth in yield_lines(z.read(name)):

instead, this works: for pth in yield_lines(str(z.read(name), encoding="ascii")):

Comments (3)

  1. Thomas Kluyver

    Call easy_install with a .exe package under Python 3. I ran into it trying to install pywin32, which can be downloaded from:


    More suitably for a test, you can call:


    In both cases, it fails with a TypeError: 'int' object is not iterable in yield_lines, which is expecting str or an iterable of strs.

  2. Log in to comment