@log_calls<EOL><INDENT>def get_basename(self, path):<DEDENT>
if path[-<NUM_LIT:1>] == PATH_SEP:<EOL><INDENT>path = path[<NUM_LIT:0>:-<NUM_LIT:1>]<EOL><DEDENT>return os.path.basename(path)<EOL>
Unix style basename.
           This fuction will return 'bar' for '/foo/bar/' instead of empty string.
           It is used to normalize the input trailing slash.