Formatted more docstrings

This commit is contained in:
Rudi Grinberg 2012-10-25 14:50:08 -04:00
parent 0f1e843017
commit 2e54fd64d3
2 changed files with 6 additions and 11 deletions

View File

@ -24,15 +24,12 @@ class Loggable(object):
def logger(self): return get_logger()
def unexpected_exception(self,e):
"""
Default message for 'unexpected' exceptions
"""
""" Default message for 'unexpected' exceptions """
self.fatal_exception("'Unexpected' exception has occured:", e)
def fatal_exception(self, message, e):
"""
Prints an exception 'e' with 'message'. Also outputs the traceback.
"""
""" Prints an exception 'e' with 'message'. Also outputs the
traceback. """
self.logger.error( message )
self.logger.error( str(e) )
self.logger.error( traceback.format_exc() )

View File

@ -17,11 +17,9 @@ class ThreadedRequestSync(threading.Thread, Loggable):
self.rs.run_request()
class RequestSync(Loggable):
"""
This class is responsible for making the api call to send a request
to airtime. In the process it packs the requests and retries for
some number of times
"""
""" This class is responsible for making the api call to send a
request to airtime. In the process it packs the requests and retries
for some number of times """
@classmethod
def create_with_api_client(cls, watcher, requests):
apiclient = ac.AirtimeApiClient.create_right_config()