summaryrefslogtreecommitdiff
path: root/Lib/_threading_local.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/_threading_local.py')
-rw-r--r--Lib/_threading_local.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/_threading_local.py b/Lib/_threading_local.py
index f0ce857162..40a07f0688 100644
--- a/Lib/_threading_local.py
+++ b/Lib/_threading_local.py
@@ -28,8 +28,7 @@ local to a thread. If we access the data in a different thread:
>>> log = []
>>> def f():
- ... items = mydata.__dict__.items()
- ... items.sort()
+ ... items = sorted(mydata.__dict__.items())
... log.append(items)
... mydata.number = 11
... log.append(mydata.number)