diff options
Diffstat (limited to 'python/lock.cc')
| -rw-r--r-- | python/lock.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/lock.cc b/python/lock.cc index fc78c0cb..2c957df1 100644 --- a/python/lock.cc +++ b/python/lock.cc @@ -78,11 +78,11 @@ static char *systemlock_doc = "SystemLock()\n\n" "Context manager for locking the package system. The lock is established\n" "as soon as the method __enter__() is called. It is released when\n" "__exit__() is called.\n\n" - "This should be used via the 'with' statement, e.g.::\n\n" + "This should be used via the 'with' statement, for example:\n\n" " with apt_pkg.SystemLock():\n" " ...\n\n" "Once the block is left, the lock is released automatically. The object\n" - "can be used multiple times::\n\n" + "can be used multiple times:\n\n" " lock = apt_pkg.SystemLock()\n" " with lock:\n" " ...\n" @@ -210,11 +210,11 @@ static char *filelock_doc = "SystemLock(filename: str)\n\n" "Context manager for locking using a file. The lock is established\n" "as soon as the method __enter__() is called. It is released when\n" "__exit__() is called.\n\n" - "This should be used via the 'with' statement, e.g.::\n\n" + "This should be used via the 'with' statement, for example:\n\n" " with apt_pkg.FileLock(filename):\n" " ...\n\n" "Once the block is left, the lock is released automatically. The object\n" - "can be used multiple times::\n\n" + "can be used multiple times:\n\n" " lock = apt_pkg.FileLock(filename)\n" " with lock:\n" " ...\n" |
