#NEWLINE# def dependencies( package_json , version_number = None ) : #NEWLINE# #INDENT# 'Get the list of package names of dependencies for a package.' #NEWLINE# versions = package_json [ 'versions' ] #NEWLINE# if ( versions is None ) : #NEWLINE# #INDENT# version_number = sorted ( versions , cmp = compare_version_numbers , reverse = True ) [ 0 ] #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# return package_json [ 'versions' ] [ version_number ] [ 'dependencies' ] . keys ( ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return None