This file is indexed.

/usr/share/pyshared/pondus/backends/util.py is in pondus 0.8.0-2.

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
# -*- coding: UTF-8 -*-

"""
This file is part of Pondus, a personal weight manager.
Copyright (C) 2011  Eike Nicklas <eike@ephys.de>

This program is free software licensed under the MIT license. For details
see LICENSE or http://www.opensource.org/licenses/mit-license.php
"""


def get_backend(name):
    """Returns a backend corresponding to name. Possible names are:
    xml, xml_old, csv, sportstracker"""
    if name == 'xml':
        from xml_backend import XmlBackend as Backend
    elif name == 'xml_old':
        from xml_backend_old import XmlBackendOld as Backend
    elif name == 'csv':
        from csv_backend import CsvBackend as Backend
    elif name == 'sportstracker':
        from sportstracker_backend import SportstrackerBackend as Backend
    return Backend()