This file is indexed.

/usr/share/pyshared/pychess/ic/managers/ErrorManager.py is in pychess 0.12~beta3-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
25
26
27
28
29
from gobject import *

sanmove = "([a-hx@OoPKQRBN0-8+#=-]{2,7})"

class ErrorManager (GObject):
    
    __gsignals__ = {
        'onCommandNotFound' : (SIGNAL_RUN_FIRST, TYPE_NONE, (str,)),
        'onAmbiguousMove' : (SIGNAL_RUN_FIRST, TYPE_NONE, (str,)),
        'onIllegalMove' : (SIGNAL_RUN_FIRST, TYPE_NONE, (str,)),
    }
    
    def __init__ (self, connection):
        GObject.__init__(self)
        connection.expect_line (self.onError, "(.*?): Command not found\.")
        connection.expect_line (self.onAmbiguousMove, "Ambiguous move \((%s)\)\." % sanmove)
        connection.expect_line (self.onIllegalMove, "Illegal move \((%s)\)\." % sanmove)
    
    def onError (self, match):
        command = match.groups()[0]
        self.emit("onCommandNotFound", command)
    
    def onAmbiguousMove (self, match):
        move = match.groups()[0]
        self.emit("onAmbiguousMove", move)
    
    def onIllegalMove (self, match):
        move = match.groups()[0]
        self.emit("onIllegalMove", move)