This file is indexed.

/usr/lib/python2.7/dist-packages/VisionEgg/PyroClient.py is in python-visionegg 1.2.1-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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# The Vision Egg: PyroClient
#
# Copyright (C) 2001-2003 Andrew Straw.
# Copyright (C) 2008 California Insitute of Technology
# Author: Andrew Straw <astraw@users.sourceforge.net>
# URL: <http://www.visionegg.org/>
#
# Distributed under the terms of the GNU Lesser General Public License
# (LGPL). See LICENSE.TXT that came with this file.
#
# $Id$

"""
Python Remote Objects support - Client side.

"""

import socket
import VisionEgg

import logging                              # available in Python 2.3
import Pyro.core

class PyroClient:
    """Simplifies getting PyroControllers from a remote computer."""
    def __init__(self,server_hostname='',server_port=7766):
        """Initialize Pyro client."""
        Pyro.core.initClient()
        try:
            self.server_hostname = socket.getfqdn(server_hostname)
        except Exception, x:
            logger = logging.getLogger('VisionEgg.PyroClient')
            logger.warning("while getting fully qualified domain name: %s: %s"%
                           (str(x.__class__),str(x)))
            self.server_hostname = server_hostname
        self.server_port = server_port

    def get(self,name):
        """Return a remote Pyro object being served by Pyro server."""
        URI = "PYROLOC://%s:%d/%s" % (self.server_hostname, self.server_port, name)
        return Pyro.core.getProxyForURI(URI)