From: José Fonseca Date: Mon, 16 Apr 2012 09:59:49 +0000 (+0100) Subject: unpickle: Fix rebuild of iterables. X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=0f04d1a7e641fc37b4550f4ba6d1034f2da1ea0d;p=apitrace unpickle: Fix rebuild of iterables. --- diff --git a/scripts/unpickle.py b/scripts/unpickle.py index ab2dc4d..b2c49c9 100755 --- a/scripts/unpickle.py +++ b/scripts/unpickle.py @@ -152,7 +152,7 @@ class Rebuilder(Visitor): newItems.append(newItem) if changed: klass = type(obj) - return klass(changed) + return klass(newItems) else: return obj