This file is indexed.

/usr/share/pyshared/geopy/geocoders/base.py is in python-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
28
29
30
31
32
33
34
class Geocoder(object):
    def __init__(self, format_string='%s'):
        self.format_string = format_string

    def geocode(self, location):
        raise NotImplementedError

    def reverse(self, point):
        raise NotImplementedError

    def geocode_one(self, location):
        results = self.geocode(location)
        first = None
        for result in results:
            if first is None:
                first = result
            else:
                raise GeocoderResultError("Geocoder returned more than one result!")
        if first is not None:
            return first
        else:
            raise GeocoderResultError("Geocoder returned no results!")

    def geocode_first(self, location):
        results = self.geocode(location)
        for result in results:
            return result
        return None

class GeocoderError(Exception):
    pass

class GeocoderResultError(GeocoderError):
    pass