| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -145,12 +145,12 @@ lock_PyThread_acquire_lock(lockobject *self, PyObject *args, PyObject *kwds) | |||
| 145 | 145 | } | |
| 146 | 146 | ||
| 147 | 147 | PyDoc_STRVAR(acquire_doc, | |
| 148 | - "acquire([wait]) -> None or bool\n\ | ||
| 148 | + "acquire([wait]) -> bool\n\ | ||
| 149 | 149 | (acquire_lock() is an obsolete synonym)\n\ | |
| 150 | 150 | \n\ | |
| 151 | 151 | Lock the lock. Without argument, this blocks if the lock is already\n\ | |
| 152 | 152 | locked (even by the same thread), waiting for another thread to release\n\ | |
| 153 | - the lock, and return None once the lock is acquired.\n\ | ||
| 153 | + the lock, and return True once the lock is acquired.\n\ | ||
| 154 | 154 | With an argument, this will only block if the argument is true,\n\ | |
| 155 | 155 | and the return value reflects whether the lock is acquired.\n\ | |
| 156 | 156 | The blocking operation is interruptible."); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments