This file is indexed.

/usr/share/pyshared/pychess/widgets/PieceWidget.py is in pychess 0.10.1-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
20
21
22
23
24
import gtk
import cairo

from pychess.gfx.Pieces import drawPiece

class PieceWidget (gtk.DrawingArea):
    def __init__(self, piece):
        gtk.DrawingArea.__init__(self)
        self.connect("expose_event", self.expose)
        self.piece = piece
    
    def setPiece(self, piece):
        self.piece = piece
    
    def getPiece(self):
        return self.piece
    
    def expose(self, widget, event):
        context = widget.window.cairo_create()
        rect = self.get_allocation()
        s = min(rect.width, rect.height)
        x = (rect.width-s) / 2.0
        y = (rect.height-s) / 2.0
        drawPiece(self.piece, context, x, y, s)