return the common part shared with the other path
or None if there is no common part.
def common(self, other):
origin: PathBase
where:
function source:
def common(self, other):
""" return the common part shared with the other path
or None if there is no common part.
"""
last = None
for x, y in zip(self.parts(), other.parts()):
if x != y:
return last
last = x
return last
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py
traceback path.svnurl.common.0
called in /home/johnny/projects/merlinux/py/dist/py/path/testing/common.py