diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-01-29 03:49:43 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-01-29 03:49:43 +0000 |
commit | 2c60f7a13697bbc19c4d5ef0b052c34cf1848244 (patch) | |
tree | 7e33cdc40b1e60ad8729008f344bb8849e1373e1 /Lib/dummy_thread.py | |
parent | c0c12b57070a5b494662bebc418e3958bf5bdbee (diff) | |
download | cpython-git-2c60f7a13697bbc19c4d5ef0b052c34cf1848244.tar.gz |
Whitespace normalization.
Diffstat (limited to 'Lib/dummy_thread.py')
-rw-r--r-- | Lib/dummy_thread.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/dummy_thread.py b/Lib/dummy_thread.py index b0ba0ce477..e4bf05a2ca 100644 --- a/Lib/dummy_thread.py +++ b/Lib/dummy_thread.py @@ -4,7 +4,7 @@ Meant to be used as a brain-dead substitute so that threaded code does not need to be rewritten for when the thread module is not present. Suggested usage is:: - + try: import thread except ImportError: @@ -67,7 +67,7 @@ def allocate_lock(): class LockType(object): """Class implementing dummy implementation of thread.LockType. - + Compatibility is maintained by maintaining self.locked_status which is a boolean that stores the state of the lock. Pickling of the lock, though, should not be done since if the thread module is @@ -78,7 +78,7 @@ class LockType(object): def __init__(self): self.locked_status = False - + def acquire(self, waitflag=None): """Dummy implementation of acquire(). @@ -92,7 +92,7 @@ class LockType(object): """ if waitflag is None: self.locked_status = True - return None + return None elif not waitflag: if not self.locked_status: self.locked_status = True @@ -101,7 +101,7 @@ class LockType(object): return False else: self.locked_status = True - return True + return True def release(self): """Release the dummy lock.""" |