Skip to main content

normal

Function normal 

Source
pub fn normal(p: &Path) -> String
Expand description

A path in the form it is stored and compared in: absolute and symlink-resolved where possible.

Normalizing at one producer and not another is a real bug rather than a tidiness concern: mypy shipped a version where a file checked directly recorded a relative path while the same file reached as an import recorded an absolute one, so its hash depended on how it was reached. Everything that goes into an entry comes through here.