summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-04-02 17:10:52 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-04-02 17:10:52 (GMT)
commitd9ebf4dc1f2a816ea708e055d544efb2e2d0a7d5 (patch)
treeb549a4af3913bd8702465d81cc9a620038c7c96a /Lib
parente3e1c17e08f03c150dff060f5824cb4454e311e4 (diff)
downloadcpython-d9ebf4dc1f2a816ea708e055d544efb2e2d0a7d5.zip
cpython-d9ebf4dc1f2a816ea708e055d544efb2e2d0a7d5.tar.gz
cpython-d9ebf4dc1f2a816ea708e055d544efb2e2d0a7d5.tar.bz2
#17489: Add explanatory comment that __getstate__ is not called.
We don't put coverage directives in the stdlib, but anyone looking at a coverage report for Random should see the comment and understand why the lines aren't covered.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/random.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/random.py b/Lib/random.py
index b2e9ae1..b183f56 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -151,6 +151,9 @@ class Random(_random.Random):
## -------------------- pickle support -------------------
+ # Issue 17489: Since __reduce__ was defined to fix #759889 this is no
+ # longer called; we leave it here because it has been here since random was
+ # rewritten back in 2001 and why risk breaking something.
def __getstate__(self): # for pickle
return self.getstate()