summaryrefslogtreecommitdiffstats
path: root/Lib/pickle.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-06-22 18:51:23 (GMT)
committerGuido van Rossum <guido@python.org>1995-06-22 18:51:23 (GMT)
commitf71c79bb851169f6a24f7c5333674f3e81790a87 (patch)
tree74edf8a639f27db411eac3b6566eb1720f1c107a /Lib/pickle.py
parentf4ef7e6a0b9c7e6846ab789f12c45e95cd7e8bff (diff)
downloadcpython-f71c79bb851169f6a24f7c5333674f3e81790a87.zip
cpython-f71c79bb851169f6a24f7c5333674f3e81790a87.tar.gz
cpython-f71c79bb851169f6a24f7c5333674f3e81790a87.tar.bz2
test other name variable
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 2895237..f7b1d29 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -341,7 +341,7 @@ def whichmodule(cls):
import sys
clsname = cls.__name__
for name, module in sys.modules.items():
- if module.__name__ != '__main__' and \
+ if name != '__main__' and \
hasattr(module, clsname) and \
getattr(module, clsname) is cls:
break