On Thu, Mar 24, 2016 at 05:06:54AM -0700, Vitaly Bogomolov wrote: > > The code seems too complicated. Could we reuse os.path handling from the > > standard library to simplify it? > > > > I don't think, that os.path is applicable in this case, because > template_name != file_name. In fact, this feature must work for any > template loader (databases, etc), which have 'hierarchy' concept, and uses > '/' as separator for levels of hierarchy.
If the platform-dependent os.path is not suitable for this, but you want to always perform POSIX-like path manipulations, you should just use the posixpath module. Cheers, Michal -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/20160324121305.GC25061%40koniiiik.org. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Digital signature
