Skip to content

file:// urls broken #471

@ghost

Description

Originally reported by: rbtcollins (Bitbucket: rbtcollins, GitHub: rbtcollins)


In setuptools/package_index.py

line 1040 in local_open()
files.append("%s" % (f,f))

If f is a unicode string the resulting text is:
[u"<a href=u'testbuilder-1.0.tar.gz'>testbuilder-1.0.tar.gz"]

note the href=u in the HTML, which is not valid - this leads to output like the following:
Reading file:///tmp/tmpBGlO4q/testbuilder/
Reading file:///tmp/tmpBGlO4q/testbuilder/u
No local packages or download links found for testbuilder

Using ..."%s"... in the format string should fix this - I'm not 100% sure why filename is ending up unicode for me, but there it is


Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions