This file is indexed.

/usr/lib/python2.7/dist-packages/winrm/exceptions.py is in python-winrm 0.0.3-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
35
36
37
38
39
40
41
import re


class WinRMWebServiceError(Exception):
    """Generic WinRM SOAP Error"""
    pass


class WinRMAuthorizationError(Exception):
    """Authorization Error"""
    pass


class WinRMWSManFault(Exception):
    """A Fault returned in the SOAP response. The XML node is a WSManFault"""
    pass


class WinRMTransportError(Exception):
    """"Transport-level error"""
    code = 500

    def __init__(self, transport, message):
        self.transport = transport
        self.message = message

    def __str__(self):
        return '{0} {1}. {2}'.format(self.code, re.sub('Error$', '', self.__class__.__name__), self.message)

    def __repr__(self):
        return "{0}(code={1}, transport='{2}', message='{3}')".format(
            self.__class__.__name__, self.code, self.transport, self.message)


class UnauthorizedError(WinRMTransportError):
    """Raise if the user is not authorized"""
    code = 401


class TimeoutError(WinRMTransportError):
    pass