pylint fix.
diff --git a/infocalypse/requestingbundles.py b/infocalypse/requestingbundles.py --- a/infocalypse/requestingbundles.py +++ b/infocalypse/requestingbundles.py @@ -37,6 +37,15 @@ from statemachine import RetryingRequest from chk import clear_control_bytes +def fixup(edges, candidate_list): + """ INTERNAL : Helper used by _set_graph to fix up CHKs->edges. """ + for candidate in candidate_list: + if candidate[6]: + continue # Skip graph requests! + edge = edges[candidate[0]] + candidate[3] = edge + candidate[4] = None + # FUNCTIONAL REQUIREMENTS: # 0) Update as fast as possible # 1) Single block fetch alternate keys. @@ -346,15 +355,6 @@ class RequestingBundles(RetryingRequestL """ INTERNAL: Set the graph and fixup any pending CHK edge requests with their edges. """ - def fixup(edges, candidate_list): - """ INTERNAL : Helper fixes up CHK->edges. """ - for candidate in candidate_list: - if candidate[6]: - continue # Skip graph requests! - edge = edges[candidate[0]] - candidate[3] = edge - candidate[4] = None - edges = chk_to_edge_triple_map(graph) skip_chks = set([]) # REDFLAG: remove!