Skip to content

os.path.join(u'abc', str(u'def')) fails #15

Closed

Description

@edschofield

This fails:

from future.builtins import str
os.path.join(u'abc', str(u'def'))

This is invoked by Django 1.4.

Python 2.7's os.path.join ignores the type of the arguments and always attempts to concatenate a byte-string '/'. (This is fixed in Python 3.x's os.path.join.)

Activity

  1. edschofield commented on Dec 7, 2013

    @edschofield
    ContributorAuthor

    Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions