prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  TypeError while instantiating LoggingHandler (2.6)
  I assume this is new-style vs old-style classes being grumpy?
  
  ```
  >>> from pre_commit.logging_handler import LoggingHandler
  >>> LoggingHandler(True)
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File ".../py_env/lib/python2.6/site-packages/pre_commit/logging_handler.py", line 19, in __init__
      super(LoggingHandler, self).__init__()
  TypeError: super() argument 1 must be type, not classobj
  ```
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `pre_commit/logging_handler.py`
  Content:
  ```
  1 
  2 from __future__ import print_function
  3 
  4 import logging
  5 
  6 from pre_commit import color
  7 
  8 
  9 LOG_LEVEL_COLORS = {
  10     'DEBUG': '',
  11     'INFO': '',
  12     'WARNING': color.YELLOW,
  13     'ERROR': color.RED,
  14 }
  15 
  16 
  17 class LoggingHandler(logging.Handler):
  18     def __init__(self, use_color):
  19         super(LoggingHandler, self).__init__()
  20         self.use_color = use_color
  21 
  22     def emit(self, record):
  23         print(
  24             u'{0}{1}'.format(
  25                 color.format_color(
  26                     '[{0}]'.format(record.levelname),
  27                     LOG_LEVEL_COLORS[record.levelname],
  28                     self.use_color,
  29                 ) + ' ' if record.levelno >= logging.WARNING else '',
  30                 record.getMessage(),
  31             )
  32         )
  33
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/pre_commit/logging_handler.py b/pre_commit/logging_handler.py
  --- a/pre_commit/logging_handler.py
  +++ b/pre_commit/logging_handler.py
  @@ -16,7 +16,7 @@
   
   class LoggingHandler(logging.Handler):
       def __init__(self, use_color):
  -        super(LoggingHandler, self).__init__()
  +        logging.Handler.__init__(self)
           self.use_color = use_color
   
       def emit(self, record):
  
verification_info: {"golden_diff": "diff --git a/pre_commit/logging_handler.py b/pre_commit/logging_handler.py\n--- a/pre_commit/logging_handler.py\n+++ b/pre_commit/logging_handler.py\n@@ -16,7 +16,7 @@\n \n class LoggingHandler(logging.Handler):\n     def __init__(self, use_color):\n-        super(LoggingHandler, self).__init__()\n+        logging.Handler.__init__(self)\n         self.use_color = use_color\n \n     def emit(self, record):\n", "issue": "TypeError while instantiating LoggingHandler (2.6)\nI assume this is new-style vs old-style classes being grumpy?\n\n```\n>>> from pre_commit.logging_handler import LoggingHandler\n>>> LoggingHandler(True)\nTraceback (most recent call last):\n  File \"<stdin>\", line 1, in <module>\n  File \".../py_env/lib/python2.6/site-packages/pre_commit/logging_handler.py\", line 19, in __init__\n    super(LoggingHandler, self).__init__()\nTypeError: super() argument 1 must be type, not classobj\n```\n\n", "before_files": [{"content": "\nfrom __future__ import print_function\n\nimport logging\n\nfrom pre_commit import color\n\n\nLOG_LEVEL_COLORS = {\n    'DEBUG': '',\n    'INFO': '',\n    'WARNING': color.YELLOW,\n    'ERROR': color.RED,\n}\n\n\nclass LoggingHandler(logging.Handler):\n    def __init__(self, use_color):\n        super(LoggingHandler, self).__init__()\n        self.use_color = use_color\n\n    def emit(self, record):\n        print(\n            u'{0}{1}'.format(\n                color.format_color(\n                    '[{0}]'.format(record.levelname),\n                    LOG_LEVEL_COLORS[record.levelname],\n                    self.use_color,\n                ) + ' ' if record.levelno >= logging.WARNING else '',\n                record.getMessage(),\n            )\n        )\n", "path": "pre_commit/logging_handler.py"}], "after_files": [{"content": "\nfrom __future__ import print_function\n\nimport logging\n\nfrom pre_commit import color\n\n\nLOG_LEVEL_COLORS = {\n    'DEBUG': '',\n    'INFO': '',\n    'WARNING': color.YELLOW,\n    'ERROR': color.RED,\n}\n\n\nclass LoggingHandler(logging.Handler):\n    def __init__(self, use_color):\n        logging.Handler.__init__(self)\n        self.use_color = use_color\n\n    def emit(self, record):\n        print(\n            u'{0}{1}'.format(\n                color.format_color(\n                    '[{0}]'.format(record.levelname),\n                    LOG_LEVEL_COLORS[record.levelname],\n                    self.use_color,\n                ) + ' ' if record.levelno >= logging.WARNING else '',\n                record.getMessage(),\n            )\n        )\n", "path": "pre_commit/logging_handler.py"}]}