#NEWLINE# def unsafe( self ) : #NEWLINE# #INDENT# 'True is the mapping is unsafe for an update\n\n        Applies only to local source. Returns True if the paths for source and \n        destination are the same, or if one is a component of the other path.\n        ' #NEWLINE# ( scheme , netloc , path , params , query , fragment ) = urlparse ( self . src_uri ) #NEWLINE# if ( scheme != '' ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# s = os . path . normpath ( self . src_uri ) #NEWLINE# d = os . path . normpath ( self . dst_path ) #NEWLINE# lcp = os . path . commonprefix ( [ netloc , d ] ) #NEWLINE# return ( ( s == lcp ) or ( d == lcp ) )