
'''
Local version of ScraperWiki Utils, documentation here:
https://scraperwiki.com/docs/python/python_help_documentation/
'''

from .utils import scrape, pdftoxml, status
import utils
import sql

# Compatibility
sqlite = sql

'''
Local version of ScraperWiki Utils, documentation here:
https://scraperwiki.com/docs/python/python_help_documentation/
'''

from .utils import scrape, pdftoxml, status
import utils
import sql

# Compatibility
sqlite = sql

class Error(Exception):
    """All ScraperWiki exceptions are instances of this class
    (usually via a subclass)."""
    pass

class CPUTimeExceededError(Error):
    """CPU time limit exceeded."""
    pass

Add exceptions scraperwiki.CPUTimeExceededError and scraperwiki.Error. This bring the library closer to the classic API, which provided both these exceptions.
Add exceptions scraperwiki.CPUTimeExceededError and scraperwiki.Error.
This bring the library closer to the classic API, which provided
both these exceptions.

  
  '''
  Local version of ScraperWiki Utils, documentation here:
  https://scraperwiki.com/docs/python/python_help_documentation/
  '''
  
  from .utils import scrape, pdftoxml, status
  import utils
  import sql
  
  # Compatibility
  sqlite = sql
+ 
+ class Error(Exception):
+     """All ScraperWiki exceptions are instances of this class
+     (usually via a subclass)."""
+     pass
+ 
+ class CPUTimeExceededError(Error):
+     """CPU time limit exceeded."""
+     pass
+ 
Add exceptions scraperwiki.CPUTimeExceededError and scraperwiki.Error. This bring the library closer to the classic API, which provided both these exceptions.
## Code Before:

'''
Local version of ScraperWiki Utils, documentation here:
https://scraperwiki.com/docs/python/python_help_documentation/
'''

from .utils import scrape, pdftoxml, status
import utils
import sql

# Compatibility
sqlite = sql
## Instruction:
Add exceptions scraperwiki.CPUTimeExceededError and scraperwiki.Error. This bring the library closer to the classic API, which provided both these exceptions.
## Code After:

'''
Local version of ScraperWiki Utils, documentation here:
https://scraperwiki.com/docs/python/python_help_documentation/
'''

from .utils import scrape, pdftoxml, status
import utils
import sql

# Compatibility
sqlite = sql

class Error(Exception):
    """All ScraperWiki exceptions are instances of this class
    (usually via a subclass)."""
    pass

class CPUTimeExceededError(Error):
    """CPU time limit exceeded."""
    pass
