summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/pickle.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 682440d..28f8f90 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -473,9 +473,7 @@ class Unpickler:
"Failed to import class %s from module %s" % \
(name, module)
klass = env[name]
- # if type(klass) != ClassType:
- if (type(klass) is FunctionType or
- type(klass) is BuiltinFunctionType):
+ if type(klass) is BuiltinFunctionType:
raise SystemError, \
"Imported object %s from module %s is not a class" % \
(name, module)