Skip to content

DRY up the subscribe conditional a bit - #85

Merged
faif merged 2 commits into
faif:masterfrom
JDegner0129:fix-pubsub-conditional
May 9, 2015
Merged

faif merged 2 commits into
faif:masterfrom
JDegner0129:fix-pubsub-conditional

Conversation

@JDegner0129

Copy link
Copy Markdown
Contributor

'nuff said

@inoryy

inoryy commented May 9, 2015

Copy link
Copy Markdown

Might as well replace whole function body with

def subscribe(self, msg, subscriber):
    self.subscribers.setdefault(msg, []).append(subscriber)

@JDegner0129

Copy link
Copy Markdown
Contributor Author

You got it. JDegner0129@bbc1749

faif added a commit that referenced this pull request May 9, 2015
DRY up the subscribe conditional a bit
@faif
faif merged commit cf4b435 into faif:master May 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants