def dsu(list, key):
 warnings.warn('dsu is deprecated since Twisted 10.1. Use the built-in sorted() instead.', DeprecationWarning, stacklevel=2)
 L2 = [(key(e), i, e) for (i, e) in zip(range(len(list)), list)]
 L2.sort()
 return [e[2] for e in L2]

def dsu ( list , key ) : warnings . warn ( 'dsu is deprecated since Twisted 10.1. Use the built-in sorted() instead.' , DeprecationWarning , stacklevel = 2 ) L2 = [ ( key ( e ) , i , e ) for ( i , e ) in zip ( range ( len ( list ) ) , list ) ] L2 . sort ( ) return [ e [ 2 ] for e in L2 ]
decorate-sort-undecorate deprecated .