update to warnings
Update path.py

change str formatting to repr representation.
Merge pull request #6528 from jgors/master

update to warnings