bin/workshops.py
def extract_info_from_url(url):
    '''Extract username and project name from GitHub URL.'''
    match = GITHUB_URL_RE.search(url)
    if not match:
        print('URL {0} does not match pattern'.format(url), file=sys.stderr)
        sys.exit(1)
    user = match.group(1)
    slug = match.group(2)
    if (not user) or (not slug):
        print('URL {0} has empty user and/or slug'.format(url), file=sys.stderr)
        sys.exit(1)
    return user, slug
Extract username and project name from GitHub URL.
Extract username and project name from GitHub URL.
Extract username and project name from GitHub URL .
def extract_info_from_url(url):
    match = GITHUB_URL_RE.search(url)
    if not match:
        print('URL {0} does not match pattern'.format(url), file=sys.stderr)
        sys.exit(1)
    user = match.group(1)
    slug = match.group(2)
    if (not user) or (not slug):
        print('URL {0} has empty user and/or slug'.format(url), file=sys.stderr)
        sys.exit(1)
    return user, slug
def extract_info_from_url ( url ) : match = GITHUB_URL_RE . search ( url ) if not match : print ( 'URL {0} does not match pattern' . format ( url ) , file = sys . stderr ) sys . exit ( 1 ) user = match . group ( 1 ) slug = match . group ( 2 ) if ( not user ) or ( not slug ) : print ( 'URL {0} has empty user and/or slug' . format ( url ) , file = sys . stderr ) sys . exit ( 1 ) return user , slug
Extract username and project name from GitHub URL.
Extract username and project name from GitHub URL .
'''Extract username and project name from GitHub URL.'''
url