nodebin/utils/cnpm.py
def _process_url(files, version, platform):
    """
    :param files should be list
    """
    # Convert platform to appropriate key
    if platform == 'linux-x64':
        target = 'linux-x64'
    elif platform == 'darwin-x64':
        # osx-x64-tar is in tar.gz or tar.xz format
        # osx-x64-pkg is in pkg format
        target = 'osx-x64-tar'

    if target in files:
        return NODE_ADDR.format(version, platform)
    return ''

    :param files should be list
    
:param files should be list
: param files should be list
def _process_url(files, version, platform):
    if platform == 'linux-x64':
        target = 'linux-x64'
    elif platform == 'darwin-x64':
        target = 'osx-x64-tar'
    if target in files:
        return NODE_ADDR.format(version, platform)
    return ''
def _process_url ( files , version , platform ) : if platform == 'linux-x64' : target = 'linux-x64' elif platform == 'darwin-x64' : target = 'osx-x64-tar' if target in files : return NODE_ADDR . format ( version , platform ) return ''
:param files should be list
: param files should be list
"""
    :param files should be list
    """ # Convert platform to appropriate key # osx-x64-tar is in tar.gz or tar.xz format # osx-x64-pkg is in pkg format
files
version
platform