You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Test and fix for issue #15: os.path.join(p, s) with newstr
Loosen up str type-checking to allow mixing with native Py2 types (bu…
edschofield commentedon Dec 7, 2013
Fixed.