diff --git a/Lib/pickle.py b/Lib/pickle.py index 682440d3aee..28f8f901d12 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)