Skip to content

Commit

Permalink
use copy instead of deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Jan 5, 2013
1 parent 864abf3 commit 8500289
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions master/buildbot/data/buildsets.py
Expand Up @@ -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
Expand Down

0 comments on commit 8500289

Please sign in to comment.