

def split_leading_dir(self, path):
    path = str(self)
    path = path.lstrip('/').lstrip('\\')
    if (('/' in path) and ((('\\' in path) and (path.find('/') < path.find('\\'))) or ('\\' not in path))):
        return path.split('/', 1)
    elif ('\\' in path):
        return path.split('\\', 1)
    else:
        return (path, '')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/utils/archive.py BaseArchive.split_leading_dir/VarMisuse@16/20 `path`->`self`