From 8500289eacae0d2bba0e64b14c4788a75e78cf4f Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Sat, 5 Jan 2013 10:11:55 -0500 Subject: [PATCH] use copy instead of deepcopy --- master/buildbot/data/buildsets.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/master/buildbot/data/buildsets.py b/master/buildbot/data/buildsets.py index da3a6763493..07e31092cce 100644 --- a/master/buildbot/data/buildsets.py +++ b/master/buildbot/data/buildsets.py @@ -107,8 +107,7 @@ def addBuildset(self, scheduler=None, sourcestamps=[], reason=u'', # get each of the sourcestamps for this buildset (sequentially) bsdict = yield self.master.db.buildsets.getBuildset(bsid) sourcestamps = [ - copy.deepcopy((yield self.master.data.get({}, - ('sourcestamp', str(ssid))))) + (yield self.master.data.get({}, ('sourcestamp', str(ssid)))).copy() for ssid in bsdict['sourcestamps'] ] # strip the links from those sourcestamps