Pull requests

#38 Merged
Repository
Deleted repository
Branch
default (1038acda4912)
Repository
tarek/distribute distribute
Branch
default

decode manifest bytes(utf-8) to string first if py version is 3

Author
  1. WANG Yanjin
Reviewers
Description

Fix following bug:

TypeError: unsupported operand type(s) for %: 'bytes' and 'dict'

Comments (1)

  1. Jason R. Coombs

    Thanks for this. The plan for the future is to create some helper library for all encoding/decoding operations. In this case in particular, I believe it would be safe to always decode:

    return manifest.decode('utf-8') % vars()
    

    Python 2.4 can will handle writing unicode 'content' to a file as long as it's ASCII (which it is in this case).

    That can be handled when we work on the unified code base for Python 2 and 3.

    Thanks for the fix!