scraper/tfs/__init__.py
def create_tfs_connection(url, token):
    """
    Creates the TFS Connection Context
    """
    if token is None:
        token = os.environ.get('TFS_API_TOKEN', None)

    tfs_credentials = BasicAuthentication('', token)
    tfs_connection = VssConnection(base_url=url, creds=tfs_credentials)
    return tfs_connection
def create_tfs_connection(url, token):
    if token is None:
        token = os.environ.get('TFS_API_TOKEN', None)

    tfs_credentials = BasicAuthentication('', token)
    tfs_connection = VssConnection(base_url=url, creds=tfs_credentials)
    return tfs_connection
def create_tfs_connection ( url , token ) : if token is None : token = os . environ . get ( 'TFS_API_TOKEN' , None ) tfs_credentials = BasicAuthentication ( '' , token ) tfs_connection = VssConnection ( base_url = url , creds = tfs_credentials ) return tfs_connection
Creates the TFS Connection Context
Creates the TFS Connection Context