__LockNT appears to have an attribute checking bug
Status: Inactive
Brought to you by:
jodyburns
Lines: 109-110
This code checks for one attribute "num_OSHandle" but then assigns to a different attribute "__num_OSHandle" which will get its name mangled. Unless I'm mistaken, the attribute name which is checked will never be assigned to so this test will always return False.
if hasattr(self, "num_OSHandle") == False:
self.__num_OSHandle = _get_osfhandle(self.fileno())
A possible solution would be:
try:
self.__num_OSHandle
except AttributeError:
self.__num_OSHandle = _get_osfhandle(self.fileno())
Logged In: YES
user_id=1772649
Originator: YES
Should have said this is in XFile