Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/mutex.py

    r2 r391  
    2121    def __init__(self):
    2222        """Create a new mutex -- initially unlocked."""
    23         self.locked = 0
     23        self.locked = False
    2424        self.queue = deque()
    2525
     
    3232        return True if it succeeded."""
    3333        if not self.locked:
    34             self.locked = 1
     34            self.locked = True
    3535            return True
    3636        else:
     
    5353            function(argument)
    5454        else:
    55             self.locked = 0
     55            self.locked = False
Note: See TracChangeset for help on using the changeset viewer.