Skip to content

Commit

Permalink
Fixed argument names for consistency in README
Browse files Browse the repository at this point in the history
  • Loading branch information
jpic committed Mar 18, 2014
1 parent 3cd3744 commit eca9613
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ boilerplate code:
def register_observer(self, observer):
self.observers.append(observer)
def something_happens(self, context, router):
def something_happens(self, some_argument):
for observer in self.observers:
observer.something_happens(context, router)
observer.something_happens(some_argument)
This implementation is a bit dumb, it doesn't check the compatibility of
observers for example, also it's additionnal code you'd have to test.
Expand Down Expand Up @@ -137,7 +137,7 @@ like:
from your_client.signals import something_happens
def something_happens(context, router):
def something_happens(some_argument):
# ....
something_happens.connect(something_happens)
Expand Down

0 comments on commit eca9613

Please sign in to comment.