/usr/share/pyshared/qm/lock.py is in qmtest 2.4.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 | ########################################################################
#
# File: lock.py
# Author: Mark Mitchell
# Date: 07/03/2002
#
# Contents:
# Lock
#
# Copyright (c) 2002 by CodeSourcery, LLC. All rights reserved.
#
# For license terms see the file COPYING.
#
########################################################################
########################################################################
# Notes
########################################################################
# On systems that do not support threads, Threading.Lock() is
# unavailable. This module provides a class with the same interface
# that works on systems without threads.
try:
import thread
from threading import Lock, RLock
except:
class Lock:
def acquire(blocking = 1):
# The lock can always be acquired.
pass
def release():
# There is nothing to do to release the lock.
pass
class RLock(Lock):
pass
|