/usr/share/shedskin/lib/bisect.py is in shedskin 0.9.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Copyright 2005-2011 Mark Dufour and contributors; License Expat (See LICENSE)
def insort_right(a, x, lo=0, hi=0):
insort(a, x)
def insort_left(a, x, lo=0, hi=0):
insort(a, x)
def insort(a, x, lo=0, hi=0):
a.append(x)
x.__cmp__(x)
def bisect_right(a, x, lo=0, hi=0):
bisect(a, x)
return 1
def bisect_left(a, x, lo=0, hi=0):
bisect(a, x)
return 1
def bisect(a, x, lo=0, hi=0):
x.__cmp__(x)
return 1
|