This file is indexed.

/usr/lib/python3/dist-packages/geopy/location.py is in python3-geopy 0.95.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
25
26
27
from geopy.point import Point

class Location(object):
    def __init__(self, name="", point=None, attributes=None, **kwargs):
        self.name = name
        if point is not None:
            self.point = Point(point)
        if attributes is None:
            attributes = {}
        self.attributes = dict(attributes, **kwargs)
    
    def __getitem__(self, index):
        """Backwards compatibility with geopy 0.93 tuples."""
        return (self.name, self.point)[index]
    
    def __repr__(self):
        return "Location(%r, %r)" % (self.name, self.point)
    
    def __iter__(self):
        return iter((self.name, self.point))
    
    def __eq__(self, other):
        return (self.name, self.point) == (other.name, other.point)
    
    def __ne__(self, other):
        return (self.name, self.point) != (other.name, other.point)