This file is indexed.

/usr/share/pyshared/kivy/effects/opacityscroll.py is in python-kivy 1.7.2-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
'''
Opacity scroll effect
=====================

Based on the :class:`~kivy.effects.damped.DampedScrollEffect`, this one will
also decrease the opacity of the target widget during the overscroll.

'''

__all__ = ('OpacityScrollEffect', )


from kivy.effects.dampedscroll import DampedScrollEffect


class OpacityScrollEffect(DampedScrollEffect):

    def on_overscroll(self, *args):
        if self.target_widget and self.target_widget.height != 0:
            alpha = 1.0 - abs(self.overscroll / float(self.target_widget.height))
            self.target_widget.opacity = min(1, alpha)
        self.trigger_velocity_update()