This file is indexed.

/usr/share/pyshared/usbtc08.py is in python-usbtc08 0.1.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
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.4
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.



from sys import version_info
if version_info >= (2,6,0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_usbtc08', [dirname(__file__)])
        except ImportError:
            import _usbtc08
            return _usbtc08
        if fp is not None:
            try:
                _mod = imp.load_module('_usbtc08', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _usbtc08 = swig_import_helper()
    del swig_import_helper
else:
    import _usbtc08
del version_info
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    if (name == "thisown"): return self.this.own()
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError(name)

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0


class floats(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, floats, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, floats, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _usbtc08.new_floats(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _usbtc08.delete_floats
    __del__ = lambda self : None;
    def __getitem__(self, *args): return _usbtc08.floats___getitem__(self, *args)
    def __setitem__(self, *args): return _usbtc08.floats___setitem__(self, *args)
    def cast(self): return _usbtc08.floats_cast(self)
    __swig_getmethods__["frompointer"] = lambda x: _usbtc08.floats_frompointer
    if _newclass:frompointer = staticmethod(_usbtc08.floats_frompointer)
floats_swigregister = _usbtc08.floats_swigregister
floats_swigregister(floats)

def floats_frompointer(*args):
  return _usbtc08.floats_frompointer(*args)
floats_frompointer = _usbtc08.floats_frompointer

class longs(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, longs, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, longs, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _usbtc08.new_longs(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _usbtc08.delete_longs
    __del__ = lambda self : None;
    def __getitem__(self, *args): return _usbtc08.longs___getitem__(self, *args)
    def __setitem__(self, *args): return _usbtc08.longs___setitem__(self, *args)
    def cast(self): return _usbtc08.longs_cast(self)
    __swig_getmethods__["frompointer"] = lambda x: _usbtc08.longs_frompointer
    if _newclass:frompointer = staticmethod(_usbtc08.longs_frompointer)
longs_swigregister = _usbtc08.longs_swigregister
longs_swigregister(longs)

def longs_frompointer(*args):
  return _usbtc08.longs_frompointer(*args)
longs_frompointer = _usbtc08.longs_frompointer

USBTC08_DRIVER_VERSION_MAJOR = _usbtc08.USBTC08_DRIVER_VERSION_MAJOR
USBTC08_DRIVER_VERSION_MINOR = _usbtc08.USBTC08_DRIVER_VERSION_MINOR
USBTC08_DRIVER_VERSION_REVISION = _usbtc08.USBTC08_DRIVER_VERSION_REVISION
USBTC08_MAX_DATE_CHARS = _usbtc08.USBTC08_MAX_DATE_CHARS
USBTC08_MAX_SERIAL_CHARS = _usbtc08.USBTC08_MAX_SERIAL_CHARS
USBTC08_MAX_INFO_CHARS = _usbtc08.USBTC08_MAX_INFO_CHARS
USBTC08_MAX_VERSION_CHARS = _usbtc08.USBTC08_MAX_VERSION_CHARS
USBTC08_MAX_SAMPLE_BUFFER = _usbtc08.USBTC08_MAX_SAMPLE_BUFFER
USBTC08_MAINS_50HZ = _usbtc08.USBTC08_MAINS_50HZ
USBTC08_MAINS_60HZ = _usbtc08.USBTC08_MAINS_60HZ
USBTC08_MAINS_MAX = _usbtc08.USBTC08_MAINS_MAX
USBTC08_TCTYPE_B = _usbtc08.USBTC08_TCTYPE_B
USBTC08_TCTYPE_E = _usbtc08.USBTC08_TCTYPE_E
USBTC08_TCTYPE_J = _usbtc08.USBTC08_TCTYPE_J
USBTC08_TCTYPE_K = _usbtc08.USBTC08_TCTYPE_K
USBTC08_TCTYPE_N = _usbtc08.USBTC08_TCTYPE_N
USBTC08_TCTYPE_R = _usbtc08.USBTC08_TCTYPE_R
USBTC08_TCTYPE_S = _usbtc08.USBTC08_TCTYPE_S
USBTC08_TCTYPE_T = _usbtc08.USBTC08_TCTYPE_T
USBTC08_TCTYPE_OFF = _usbtc08.USBTC08_TCTYPE_OFF
USBTC08_TCTYPE_CJC = _usbtc08.USBTC08_TCTYPE_CJC
USBTC08_TCTYPE_VOLTAGE = _usbtc08.USBTC08_TCTYPE_VOLTAGE
USBTC08_LED_OFF = _usbtc08.USBTC08_LED_OFF
USBTC08_LED_RED = _usbtc08.USBTC08_LED_RED
USBTC08_LED_GREEN = _usbtc08.USBTC08_LED_GREEN
USBTC08_LED_MAX = _usbtc08.USBTC08_LED_MAX
USBTC08_STATE_DISCONNECTED = _usbtc08.USBTC08_STATE_DISCONNECTED
USBTC08_STATE_LOCKED = _usbtc08.USBTC08_STATE_LOCKED
USBTC08_STATE_CLOSED = _usbtc08.USBTC08_STATE_CLOSED
USBTC08_STATE_IDLE = _usbtc08.USBTC08_STATE_IDLE
USBTC08_STATE_STREAMING = _usbtc08.USBTC08_STATE_STREAMING
USBTC08_CHANNEL_CJC = _usbtc08.USBTC08_CHANNEL_CJC
USBTC08_CHANNEL_1 = _usbtc08.USBTC08_CHANNEL_1
USBTC08_CHANNEL_2 = _usbtc08.USBTC08_CHANNEL_2
USBTC08_CHANNEL_3 = _usbtc08.USBTC08_CHANNEL_3
USBTC08_CHANNEL_4 = _usbtc08.USBTC08_CHANNEL_4
USBTC08_CHANNEL_5 = _usbtc08.USBTC08_CHANNEL_5
USBTC08_CHANNEL_6 = _usbtc08.USBTC08_CHANNEL_6
USBTC08_CHANNEL_7 = _usbtc08.USBTC08_CHANNEL_7
USBTC08_CHANNEL_8 = _usbtc08.USBTC08_CHANNEL_8
USBTC08_CHANNEL_COUNT = _usbtc08.USBTC08_CHANNEL_COUNT
USBTC08_MAX_CHANNELS = _usbtc08.USBTC08_MAX_CHANNELS
USBTC08_PROGRESS_FAIL = _usbtc08.USBTC08_PROGRESS_FAIL
USBTC08_PROGRESS_PENDING = _usbtc08.USBTC08_PROGRESS_PENDING
USBTC08_PROGRESS_COMPLETE = _usbtc08.USBTC08_PROGRESS_COMPLETE
USBTC08_ERROR_OK = _usbtc08.USBTC08_ERROR_OK
USBTC08_ERROR_OS_NOT_SUPPORTED = _usbtc08.USBTC08_ERROR_OS_NOT_SUPPORTED
USBTC08_ERROR_NO_CHANNELS_SET = _usbtc08.USBTC08_ERROR_NO_CHANNELS_SET
USBTC08_ERROR_INVALID_PARAMETER = _usbtc08.USBTC08_ERROR_INVALID_PARAMETER
USBTC08_ERROR_VARIANT_NOT_SUPPORTED = _usbtc08.USBTC08_ERROR_VARIANT_NOT_SUPPORTED
USBTC08_ERROR_INCORRECT_MODE = _usbtc08.USBTC08_ERROR_INCORRECT_MODE
USBTC08_ERROR_ENUMERATION_INCOMPLETE = _usbtc08.USBTC08_ERROR_ENUMERATION_INCOMPLETE
USBTC08_ERROR_NOT_RESPONDING = _usbtc08.USBTC08_ERROR_NOT_RESPONDING
USBTC08_ERROR_FW_FAIL = _usbtc08.USBTC08_ERROR_FW_FAIL
USBTC08_ERROR_CONFIG_FAIL = _usbtc08.USBTC08_ERROR_CONFIG_FAIL
USBTC08_ERROR_NOT_FOUND = _usbtc08.USBTC08_ERROR_NOT_FOUND
USBTC08_ERROR_THREAD_FAIL = _usbtc08.USBTC08_ERROR_THREAD_FAIL
USBTC08_ERROR_PIPE_INFO_FAIL = _usbtc08.USBTC08_ERROR_PIPE_INFO_FAIL
USBTC08_ERROR_NOT_CALIBRATED = _usbtc08.USBTC08_ERROR_NOT_CALIBRATED
USBTC08_EROOR_PICOPP_TOO_OLD = _usbtc08.USBTC08_EROOR_PICOPP_TOO_OLD
USBTC08_ERROR_COMMUNICATION = _usbtc08.USBTC08_ERROR_COMMUNICATION
USBTC08_UNITS_CENTIGRADE = _usbtc08.USBTC08_UNITS_CENTIGRADE
USBTC08_UNITS_FAHRENHEIT = _usbtc08.USBTC08_UNITS_FAHRENHEIT
USBTC08_UNITS_KELVIN = _usbtc08.USBTC08_UNITS_KELVIN
USBTC08_UNITS_RANKINE = _usbtc08.USBTC08_UNITS_RANKINE
USBTC08_UNITS_MAX = _usbtc08.USBTC08_UNITS_MAX
USBTC08_MAX_UNITS = _usbtc08.USBTC08_MAX_UNITS
USBTC08LINE_DRIVER_VERSION = _usbtc08.USBTC08LINE_DRIVER_VERSION
USBTC08LINE_KERNEL_DRIVER_VERSION = _usbtc08.USBTC08LINE_KERNEL_DRIVER_VERSION
USBTC08LINE_HARDWARE_VERSION = _usbtc08.USBTC08LINE_HARDWARE_VERSION
USBTC08LINE_VARIANT_INFO = _usbtc08.USBTC08LINE_VARIANT_INFO
USBTC08LINE_BATCH_AND_SERIAL = _usbtc08.USBTC08LINE_BATCH_AND_SERIAL
USBTC08LINE_CAL_DATE = _usbtc08.USBTC08LINE_CAL_DATE
class USBTC08_INFO(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, USBTC08_INFO, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, USBTC08_INFO, name)
    __repr__ = _swig_repr
    __swig_setmethods__["size"] = _usbtc08.USBTC08_INFO_size_set
    __swig_getmethods__["size"] = _usbtc08.USBTC08_INFO_size_get
    if _newclass:size = _swig_property(_usbtc08.USBTC08_INFO_size_get, _usbtc08.USBTC08_INFO_size_set)
    __swig_setmethods__["DriverVersion"] = _usbtc08.USBTC08_INFO_DriverVersion_set
    __swig_getmethods__["DriverVersion"] = _usbtc08.USBTC08_INFO_DriverVersion_get
    if _newclass:DriverVersion = _swig_property(_usbtc08.USBTC08_INFO_DriverVersion_get, _usbtc08.USBTC08_INFO_DriverVersion_set)
    __swig_setmethods__["PicoppVersion"] = _usbtc08.USBTC08_INFO_PicoppVersion_set
    __swig_getmethods__["PicoppVersion"] = _usbtc08.USBTC08_INFO_PicoppVersion_get
    if _newclass:PicoppVersion = _swig_property(_usbtc08.USBTC08_INFO_PicoppVersion_get, _usbtc08.USBTC08_INFO_PicoppVersion_set)
    __swig_setmethods__["HardwareVersion"] = _usbtc08.USBTC08_INFO_HardwareVersion_set
    __swig_getmethods__["HardwareVersion"] = _usbtc08.USBTC08_INFO_HardwareVersion_get
    if _newclass:HardwareVersion = _swig_property(_usbtc08.USBTC08_INFO_HardwareVersion_get, _usbtc08.USBTC08_INFO_HardwareVersion_set)
    __swig_setmethods__["Variant"] = _usbtc08.USBTC08_INFO_Variant_set
    __swig_getmethods__["Variant"] = _usbtc08.USBTC08_INFO_Variant_get
    if _newclass:Variant = _swig_property(_usbtc08.USBTC08_INFO_Variant_get, _usbtc08.USBTC08_INFO_Variant_set)
    __swig_setmethods__["szSerial"] = _usbtc08.USBTC08_INFO_szSerial_set
    __swig_getmethods__["szSerial"] = _usbtc08.USBTC08_INFO_szSerial_get
    if _newclass:szSerial = _swig_property(_usbtc08.USBTC08_INFO_szSerial_get, _usbtc08.USBTC08_INFO_szSerial_set)
    __swig_setmethods__["szCalDate"] = _usbtc08.USBTC08_INFO_szCalDate_set
    __swig_getmethods__["szCalDate"] = _usbtc08.USBTC08_INFO_szCalDate_get
    if _newclass:szCalDate = _swig_property(_usbtc08.USBTC08_INFO_szCalDate_get, _usbtc08.USBTC08_INFO_szCalDate_set)
    def __init__(self): 
        this = _usbtc08.new_USBTC08_INFO()
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _usbtc08.delete_USBTC08_INFO
    __del__ = lambda self : None;
USBTC08_INFO_swigregister = _usbtc08.USBTC08_INFO_swigregister
USBTC08_INFO_swigregister(USBTC08_INFO)


def usb_tc08_open_unit():
  return _usbtc08.usb_tc08_open_unit()
usb_tc08_open_unit = _usbtc08.usb_tc08_open_unit

def usb_tc08_open_unit_async():
  return _usbtc08.usb_tc08_open_unit_async()
usb_tc08_open_unit_async = _usbtc08.usb_tc08_open_unit_async

def usb_tc08_open_unit_progress(*args):
  return _usbtc08.usb_tc08_open_unit_progress(*args)
usb_tc08_open_unit_progress = _usbtc08.usb_tc08_open_unit_progress

def usb_tc08_close_unit(*args):
  return _usbtc08.usb_tc08_close_unit(*args)
usb_tc08_close_unit = _usbtc08.usb_tc08_close_unit

def usb_tc08_stop(*args):
  return _usbtc08.usb_tc08_stop(*args)
usb_tc08_stop = _usbtc08.usb_tc08_stop

def usb_tc08_set_mains(*args):
  return _usbtc08.usb_tc08_set_mains(*args)
usb_tc08_set_mains = _usbtc08.usb_tc08_set_mains

def usb_tc08_get_minimum_interval_ms(*args):
  return _usbtc08.usb_tc08_get_minimum_interval_ms(*args)
usb_tc08_get_minimum_interval_ms = _usbtc08.usb_tc08_get_minimum_interval_ms

def usb_tc08_set_channel(*args):
  return _usbtc08.usb_tc08_set_channel(*args)
usb_tc08_set_channel = _usbtc08.usb_tc08_set_channel

def usb_tc08_run(*args):
  return _usbtc08.usb_tc08_run(*args)
usb_tc08_run = _usbtc08.usb_tc08_run

def usb_tc08_get_temp(*args):
  return _usbtc08.usb_tc08_get_temp(*args)
usb_tc08_get_temp = _usbtc08.usb_tc08_get_temp

def usb_tc08_get_temp_deskew(*args):
  return _usbtc08.usb_tc08_get_temp_deskew(*args)
usb_tc08_get_temp_deskew = _usbtc08.usb_tc08_get_temp_deskew

def usb_tc08_get_single(*args):
  return _usbtc08.usb_tc08_get_single(*args)
usb_tc08_get_single = _usbtc08.usb_tc08_get_single

def usb_tc08_get_unit_info(*args):
  return _usbtc08.usb_tc08_get_unit_info(*args)
usb_tc08_get_unit_info = _usbtc08.usb_tc08_get_unit_info

def usb_tc08_get_unit_info2(*args):
  return _usbtc08.usb_tc08_get_unit_info2(*args)
usb_tc08_get_unit_info2 = _usbtc08.usb_tc08_get_unit_info2

def usb_tc08_get_formatted_info(*args):
  return _usbtc08.usb_tc08_get_formatted_info(*args)
usb_tc08_get_formatted_info = _usbtc08.usb_tc08_get_formatted_info

def usb_tc08_get_last_error(*args):
  return _usbtc08.usb_tc08_get_last_error(*args)
usb_tc08_get_last_error = _usbtc08.usb_tc08_get_last_error
sizeof_USBTC08_INFO = _usbtc08.sizeof_USBTC08_INFO
# This file is compatible with both classic and new-style classes.