#NEWLINE# @ classmethod #NEWLINE# def relpath( cls , path , start ) : #NEWLINE# #INDENT# "Wrapper for os.path.relpath for Python 2.4.\n\n        Python 2.4 doesn't have the os.path.relpath function, so this\n        approximates it well enough for our needs.\n\n        ntpath.relpath() overflows and throws TypeError for paths containing\n        atleast 520 characters (not that hard to encounter in UCM\n        repository).\n        " #NEWLINE# try : #NEWLINE# #INDENT# return cpath . relpath ( path , start ) #NEWLINE# #UNINDENT# except ( AttributeError , TypeError ) : #NEWLINE# #INDENT# if ( start [ ( - 1 ) ] != os . sep ) : #NEWLINE# #INDENT# start += os . sep #NEWLINE# #UNINDENT# return path [ len ( start ) : ]