summaryrefslogtreecommitdiff
path: root/python/lock.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-06-29 11:02:42 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-06-29 11:02:42 +0200
commitcdaebccd5f7a5a0e23a9be7989b64850fabafed1 (patch)
tree52d3bd94c02ae9be75fb11bfd423043ef10838cc /python/lock.cc
parent57624b5df523c0b3a3ebc1741680f283ee1fbbcd (diff)
parent340f6a3d54f5705801267f365fb08b5d20228fe6 (diff)
downloadpython-apt-cdaebccd5f7a5a0e23a9be7989b64850fabafed1.tar.gz
merged from debian-sid
Diffstat (limited to 'python/lock.cc')
-rw-r--r--python/lock.cc8
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"