Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(24)  |  Call(18)  |  Derive(0)  |  Import(6)

src/p/o/portage-HEAD/pym/_emerge/actions.py   portage(Download)
from portage._sets import load_default_config, SETPREFIX
from portage._sets.base import InternalPackageSet
from portage.util import cmp_sort_key, writemsg, varexpand, \
	writemsg_level, writemsg_stdout
from portage.util.digraph import digraph
			if args_set:
 
				for pkg in sorted(vardb, key=cmp_sort_key(cmp_pkg_cpv)):
					arg_atom = None
					try:
 
			else:
				for pkg in sorted(vardb, key=cmp_sort_key(cmp_pkg_cpv)):
					if pkg not in graph:
						pkgs_to_remove.append(pkg)
 
			msg = []
			for pkg in sorted(consumer_map, key=cmp_sort_key(cmp_pkg_cpv)):
				consumers = consumer_map[pkg]
				consumer_libs = {}
			def cmp_reference_count(node1, node2):
				return node_refcounts[node1] - node_refcounts[node2]
			graph.order.sort(key=cmp_sort_key(cmp_reference_count))
 
			ignore_priority_range = [None]

src/p/o/portage-funtoo-HEAD/pym/_emerge/actions.py   portage-funtoo(Download)
from portage._sets import load_default_config, SETPREFIX
from portage._sets.base import InternalPackageSet
from portage.util import cmp_sort_key, writemsg, varexpand, \
	writemsg_level, writemsg_stdout
from portage.util.digraph import digraph
			if args_set:
 
				for pkg in sorted(vardb, key=cmp_sort_key(cmp_pkg_cpv)):
					arg_atom = None
					try:
 
			else:
				for pkg in sorted(vardb, key=cmp_sort_key(cmp_pkg_cpv)):
					if pkg not in graph:
						pkgs_to_remove.append(pkg)
 
			msg = []
			for pkg in sorted(consumer_map, key=cmp_sort_key(cmp_pkg_cpv)):
				consumers = consumer_map[pkg]
				consumer_libs = {}
			def cmp_reference_count(node1, node2):
				return node_refcounts[node1] - node_refcounts[node2]
			graph.order.sort(key=cmp_sort_key(cmp_reference_count))
 
			ignore_priority_range = [None]

src/p/o/portage-HEAD/pym/_emerge/depgraph.py   portage(Download)
from portage._sets.base import InternalPackageSet
from portage.util import ConfigProtect, shlex_split, new_protect_filename
from portage.util import cmp_sort_key, writemsg, writemsg_stdout
from portage.util import ensure_dirs
from portage.util import writemsg_level, write_atomic
			return node_info[node2] - node_info[node1]
 
		mygraph.order.sort(key=cmp_sort_key(cmp_merge_preference))
 
	def altlist(self, reversed=DeprecationWarning):
				if not isinstance(selected_nodes, list):
					selected_nodes = list(selected_nodes)
				selected_nodes.sort(key=cmp_sort_key(cmp_circular_bias))
 
			if not selected_nodes and myblocker_uninstalls:

src/p/o/portage-funtoo-HEAD/pym/_emerge/depgraph.py   portage-funtoo(Download)
from portage._sets.base import InternalPackageSet
from portage.util import ConfigProtect, shlex_split, new_protect_filename
from portage.util import cmp_sort_key, writemsg, writemsg_stdout
from portage.util import ensure_dirs
from portage.util import writemsg_level, write_atomic
			return node_info[node2] - node_info[node1]
 
		mygraph.order.sort(key=cmp_sort_key(cmp_merge_preference))
 
	def altlist(self, reversed=DeprecationWarning):
				if not isinstance(selected_nodes, list):
					selected_nodes = list(selected_nodes)
				selected_nodes.sort(key=cmp_sort_key(cmp_circular_bias))
 
			if not selected_nodes and myblocker_uninstalls:

src/p/o/portage-HEAD/pym/_emerge/UseFlagDisplay.py   portage(Download)
from portage import _encodings, _unicode_encode
from portage.output import red
from portage.util import cmp_sort_key
from portage.output import blue
 
		return (a.name > b.name) - (a.name < b.name)
 
	sort_combined = cmp_sort_key(_cmp_combined)
	del _cmp_combined
 
		return (a.name > b.name) - (a.name < b.name)
 
	sort_separated = cmp_sort_key(_cmp_separated)
	del _cmp_separated
 

src/p/o/portage-funtoo-HEAD/pym/_emerge/UseFlagDisplay.py   portage-funtoo(Download)
from portage import _encodings, _unicode_encode
from portage.output import red
from portage.util import cmp_sort_key
from portage.output import blue
 
		return (a.name > b.name) - (a.name < b.name)
 
	sort_combined = cmp_sort_key(_cmp_combined)
	del _cmp_combined
 
		return (a.name > b.name) - (a.name < b.name)
 
	sort_separated = cmp_sort_key(_cmp_separated)
	del _cmp_separated
 

src/p/o/portage-HEAD/pym/portage/getbinpkg.py   portage(Download)
			for k in keys if self.header[k]])
		for metadata in sorted(self.packages,
			key=portage.util.cmp_sort_key(_cmp_cpv)):
			metadata = metadata.copy()
			if self._inherited_keys:

src/p/o/portage-funtoo-HEAD/pym/portage/getbinpkg.py   portage-funtoo(Download)
			for k in keys if self.header[k]])
		for metadata in sorted(self.packages,
			key=portage.util.cmp_sort_key(_cmp_cpv)):
			metadata = metadata.copy()
			cpv = metadata["CPV"]