def _SharedSuffix(pattern1, pattern2):
 return _SharedPrefix(pattern1[::(-1)], pattern2[::(-1)])[::(-1)]

def _SharedSuffix ( pattern1 , pattern2 ) : return _SharedPrefix ( pattern1 [ : : ( - 1 ) ] , pattern2 [ : : ( - 1 ) ] ) [ : : ( - 1 ) ]
returns the shared suffix of two patterns .