@@ -144,6 +144,7 @@ class Client(object):
144144 >>> ident = client.get_ident(client.captureException())
145145 >>> print "Exception caught; reference is %s" % ident
146146 """
147+
147148 logger = logging .getLogger ('raven' )
148149 protocol_version = '6'
149150
@@ -374,7 +375,6 @@ def build_msg(self, event_type, data=None, date=None,
374375 The result of ``build_msg`` should be a standardized dict, with
375376 all default values available.
376377 """
377-
378378 # create ID client-side so that it can be passed to application
379379 event_id = uuid .uuid4 ().hex
380380
@@ -560,6 +560,7 @@ def tags_context(self, data, **kwargs):
560560 Update the tags context for future events.
561561
562562 >>> client.tags_context({'version': '1.0'})
563+
563564 """
564565 return self .context .merge ({
565566 'tags' : data ,
@@ -618,7 +619,6 @@ def capture(self, event_type, data=None, date=None, time_spent=None,
618619 :param sample_rate: a float in the range [0, 1] to sample this message
619620 :return: a tuple with a 32-length string identifying this event
620621 """
621-
622622 if not self .is_enabled ():
623623 return
624624
@@ -902,7 +902,8 @@ def captureExceptions(self, **kwargs):
902902 return self .context (** kwargs )
903903
904904 def captureBreadcrumb (self , * args , ** kwargs ):
905- """Records a breadcrumb with the current context. They will be
905+ """
906+ Records a breadcrumb with the current context. They will be
906907 sent with the next event.
907908 """
908909 # Note: framework integration should not call this method but
@@ -922,6 +923,7 @@ def last_event_id(self, value):
922923
923924
924925class DummyClient (Client ):
925- "Sends messages into an empty void"
926+ """Sends messages into an empty void."""
927+
926928 def send (self , ** kwargs ):
927929 return None
0 commit comments