Source

distribute / setuptools / command / egg_info.py

The branch 'default' does not exist.
Diff from to

File setuptools/command/egg_info.py

     """
     contents = "\n".join(contents)
     if sys.version_info >= (3,):
-        contents = contents.encode("utf-8")
+        contents = contents.encode("utf-8", "surrogateescape")
     f = open(filename, "wb")        # always write POSIX-style manifest
     f.write(contents)
     f.close()