File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -878,35 +878,6 @@ def on_write_failure(self, address):
878878 log .debug ("[#0000] C: <ROUTING> table=%r" , self .routing_table )
879879
880880
881- # TODO: remove in 2.0
882- def _last_bookmark (b0 , b1 ):
883- """ Return the latest of two bookmarks by looking for the maximum
884- integer value following the last colon in the bookmark string.
885- """
886- n = [None , None ]
887- _ , _ , n [0 ] = b0 .rpartition (":" )
888- _ , _ , n [1 ] = b1 .rpartition (":" )
889- for i in range (2 ):
890- try :
891- n [i ] = int (n [i ])
892- except ValueError :
893- raise ValueError ("Invalid bookmark: {}" .format (b0 ))
894- return b0 if n [0 ] > n [1 ] else b1
895-
896-
897- # TODO: remove in 2.0
898- def last_bookmark (bookmarks ):
899- """ The bookmark returned by the last :class:`.Transaction`.
900- """
901- last = None
902- for bookmark in bookmarks :
903- if last is None :
904- last = bookmark
905- else :
906- last = _last_bookmark (last , bookmark )
907- return last
908-
909-
910881def _connect (resolved_address , timeout = None , ** config ):
911882 """
912883
You can’t perform that action at this time.
0 commit comments