#NEWLINE# def setDefaultFetcher( fetcher , wrap_exceptions = True ) : #NEWLINE# #INDENT# 'Set the default fetcher\n\n    @param fetcher: The fetcher to use as the default HTTP fetcher\n    @type fetcher: HTTPFetcher\n\n    @param wrap_exceptions: Whether to wrap exceptions thrown by the\n        fetcher wil HTTPFetchingError so that they may be caught\n        easier. By default, exceptions will be wrapped. In general,\n        unwrapped fetchers are useful for debugging of fetching errors\n        or if your fetcher raises well-known exceptions that you would\n        like to catch.\n    @type wrap_exceptions: bool\n    ' #NEWLINE# global _default_fetcher #NEWLINE# if ( ( fetcher is None ) or ( not wrap_exceptions ) ) : #NEWLINE# #INDENT# _default_fetcher = fetcher #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# _default_fetcher = ExceptionWrappingFetcher ( fetcher )