def parse_ssh_path(repo):
 match = re.search('^ssh://([^/]+)(/.*)$', repo)
 if match:
  return match.groups()
 else:
  raise error.PackageUploadError(('Incorrect SSH path in settings: %s' % repo))

def parse_ssh_path ( repo ) : match = re . search ( '^ssh://([^/]+)(/.*)$' , repo ) if match : return match . groups ( ) else : raise error . PackageUploadError ( ( 'Incorrect SSH path in settings: %s' % repo ) )
parse an ssh url :type repo: string .