Skip to content

Commit

Permalink
Merge pull request faif#210 from LittleStupid/master
Browse files Browse the repository at this point in the history
fix comment
  • Loading branch information
faif authored Sep 14, 2017
2 parents 799ea89 + ba1977c commit 5f0e1eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions behavioral/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@
import time
import abc


class Handler(object):
__metaclass__ = abc.ABCMeta

def __init__(self, successor=None):
self._successor = successor

def handle(self, request):
res = self._handle(request)
if not res:
self._successor.handle(request)

@abc.abstractmethod
def _handle(self, request):
raise NotImplementedError('Must provide implementation in subclass.')
Expand Down Expand Up @@ -155,7 +156,7 @@ def suppress_stdout():
with suppress_stdout():
client1_delegate(requests)
client2_delegate(requests)
# lets check what is faster
# lets check which is faster
print(client1_delegate._time, client2_delegate._time)

### OUTPUT ###
Expand Down

0 comments on commit 5f0e1eb

Please sign in to comment.