This file is indexed.

/usr/share/doc/python-enable/examples/kiva/sub_path.py is in python-enable 4.3.0-2.

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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from numpy import array
from kiva.image import GraphicsContext

line_color = (0.0,0.0,0.0)
fill_color = array((200.,184.,106.))/255.
gc = GraphicsContext((900,900))
gc.rect(30,30,850,300)
gc.set_fill_color(fill_color)
gc.fill_path()

gc.set_fill_color((0.,0.,0.,.4))
gc.translate_ctm(50,50)
gc.move_to(10,10)
gc.line_to(400,400)

gc.move_to(410,10)
gc.line_to(410,400)
gc.line_to(710,400)
gc.line_to(550,300)
gc.line_to(710,200)
gc.line_to(500,10)
gc.close_path()

gc.rect(750,10,390,390)
gc.draw_path()

gc.save("sub_path1.bmp")

line_color = (0.0,0.0,0.0)
fill_color = array((200.,184.,106.))/255.
gc = GraphicsContext((900, 900))
gc.rect(30,30,850,300)
gc.set_fill_color(fill_color)
gc.fill_path()

gc.set_fill_color((0.,0.,0.,.4))
gc.translate_ctm(50,50)
gc.move_to(10,10)
gc.line_to(400,400)

gc.move_to(410,10)
gc.line_to(410,400)
gc.line_to(710,400)
gc.curve_to(550,300,710,200,500,10)
gc.close_path()

gc.rect(650,10,390,390)
gc.fill_path()

gc.save("sub_path2.bmp")