summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-11-28 20:54:42 (GMT)
committerGitHub <noreply@github.com>2017-11-28 20:54:42 (GMT)
commita4a3020abc065d40f57069d6c69d02222ddc85d6 (patch)
tree204e84c1c4050c001f9d0f1fa8c8f509e4fd8e2e /Lib/multiprocessing
parentc615be5166ed338c052fa67fe781b9bfe0dfb78c (diff)
downloadcpython-a4a3020abc065d40f57069d6c69d02222ddc85d6.zip
cpython-a4a3020abc065d40f57069d6c69d02222ddc85d6.tar.gz
cpython-a4a3020abc065d40f57069d6c69d02222ddc85d6.tar.bz2
bpo-32157: Removed explicit quotes around %r and {!r}. (#4582)
Diffstat (limited to 'Lib/multiprocessing')
-rw-r--r--Lib/multiprocessing/sharedctypes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/multiprocessing/sharedctypes.py b/Lib/multiprocessing/sharedctypes.py
index 066cf8f..6071707 100644
--- a/Lib/multiprocessing/sharedctypes.py
+++ b/Lib/multiprocessing/sharedctypes.py
@@ -78,7 +78,7 @@ def Value(typecode_or_type, *args, lock=True, ctx=None):
ctx = ctx or get_context()
lock = ctx.RLock()
if not hasattr(lock, 'acquire'):
- raise AttributeError("'%r' has no method 'acquire'" % lock)
+ raise AttributeError("%r has no method 'acquire'" % lock)
return synchronized(obj, lock, ctx=ctx)
def Array(typecode_or_type, size_or_initializer, *, lock=True, ctx=None):
@@ -92,7 +92,7 @@ def Array(typecode_or_type, size_or_initializer, *, lock=True, ctx=None):
ctx = ctx or get_context()
lock = ctx.RLock()
if not hasattr(lock, 'acquire'):
- raise AttributeError("'%r' has no method 'acquire'" % lock)
+ raise AttributeError("%r has no method 'acquire'" % lock)
return synchronized(obj, lock, ctx=ctx)
def copy(obj):