Skip to content

Commit

Permalink
don't use Thunk quite so liberally
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Feb 23, 2011
1 parent 1144d62 commit d9b4cc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions master/buildbot/test/fake/fakedb.py
Expand Up @@ -332,10 +332,9 @@ def flushChangeClassifications(self, schedulerid, less_than=None):
self.classifications[schedulerid] = {}
return defer.succeed(None)

class Thunk: pass
def getChangeClassifications(self, schedulerid, branch=Thunk):
def getChangeClassifications(self, schedulerid, branch=-1):
classifications = self.classifications.setdefault(schedulerid, {})
if branch is not self.Thunk:
if branch is not -1:
# filter out the classifications for the requested branch
change_branches = dict(
(id, getattr(c, 'branch', None))
Expand Down

0 comments on commit d9b4cc8

Please sign in to comment.