We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Backend loading code produces a warning with the latest setuptools
The use `load(require=False)` (specifically the `require` kwarg) is deprecated. /cc @dstufft 


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `src/cryptography/hazmat/backends/__init__.py`
Content:
```
1 # This file is dual licensed under the terms of the Apache License, Version
2 # 2.0, and the BSD License. See the LICENSE file in the root of this repository
3 # for complete details.
4 
5 from __future__ import absolute_import, division, print_function
6 
7 import pkg_resources
8 
9 from cryptography.hazmat.backends.multibackend import MultiBackend
10 
11 
12 _available_backends_list = None
13 
14 
15 def _available_backends():
16     global _available_backends_list
17 
18     if _available_backends_list is None:
19         _available_backends_list = [
20             backend.load(require=False)
21             for backend in pkg_resources.iter_entry_points(
22                 "cryptography.backends"
23             )
24         ]
25 
26     return _available_backends_list
27 
28 _default_backend = None
29 
30 
31 def default_backend():
32     global _default_backend
33 
34     if _default_backend is None:
35         _default_backend = MultiBackend(_available_backends())
36 
37     return _default_backend
38
```
--- 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()

```

diff --git a/src/cryptography/hazmat/backends/__init__.py b/src/cryptography/hazmat/backends/__init__.py
--- a/src/cryptography/hazmat/backends/__init__.py
+++ b/src/cryptography/hazmat/backends/__init__.py
@@ -17,8 +17,13 @@
 
     if _available_backends_list is None:
         _available_backends_list = [
-            backend.load(require=False)
-            for backend in pkg_resources.iter_entry_points(
+            # setuptools 11.3 deprecated support for the require parameter to
+            # load(), and introduced the new resolve() method instead.
+            # This can be removed if/when we can assume setuptools>=11.3. At
+            # some point we may wish to add a warning, to push people along,
+            # but at present this would result in too many warnings.
+            ep.resolve() if hasattr(ep, "resolve") else ep.load(require=False)
+            for ep in pkg_resources.iter_entry_points(
                 "cryptography.backends"
             )
         ]

{"golden_diff": "diff --git a/src/cryptography/hazmat/backends/__init__.py b/src/cryptography/hazmat/backends/__init__.py\n--- a/src/cryptography/hazmat/backends/__init__.py\n+++ b/src/cryptography/hazmat/backends/__init__.py\n@@ -17,8 +17,13 @@\n \n     if _available_backends_list is None:\n         _available_backends_list = [\n-            backend.load(require=False)\n-            for backend in pkg_resources.iter_entry_points(\n+            # setuptools 11.3 deprecated support for the require parameter to\n+            # load(), and introduced the new resolve() method instead.\n+            # This can be removed if/when we can assume setuptools>=11.3. At\n+            # some point we may wish to add a warning, to push people along,\n+            # but at present this would result in too many warnings.\n+            ep.resolve() if hasattr(ep, \"resolve\") else ep.load(require=False)\n+            for ep in pkg_resources.iter_entry_points(\n                 \"cryptography.backends\"\n             )\n         ]\n", "issue": "Backend loading code produces a warning with the latest setuptools\nThe use `load(require=False)` (specifically the `require` kwarg) is deprecated. /cc @dstufft \n\n", "before_files": [{"content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport pkg_resources\n\nfrom cryptography.hazmat.backends.multibackend import MultiBackend\n\n\n_available_backends_list = None\n\n\ndef _available_backends():\n    global _available_backends_list\n\n    if _available_backends_list is None:\n        _available_backends_list = [\n            backend.load(require=False)\n            for backend in pkg_resources.iter_entry_points(\n                \"cryptography.backends\"\n            )\n        ]\n\n    return _available_backends_list\n\n_default_backend = None\n\n\ndef default_backend():\n    global _default_backend\n\n    if _default_backend is None:\n        _default_backend = MultiBackend(_available_backends())\n\n    return _default_backend\n", "path": "src/cryptography/hazmat/backends/__init__.py"}], "after_files": [{"content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport pkg_resources\n\nfrom cryptography.hazmat.backends.multibackend import MultiBackend\n\n\n_available_backends_list = None\n\n\ndef _available_backends():\n    global _available_backends_list\n\n    if _available_backends_list is None:\n        _available_backends_list = [\n            # setuptools 11.3 deprecated support for the require parameter to\n            # load(), and introduced the new resolve() method instead.\n            # This can be removed if/when we can assume setuptools>=11.3. At\n            # some point we may wish to add a warning, to push people along,\n            # but at present this would result in too many warnings.\n            ep.resolve() if hasattr(ep, \"resolve\") else ep.load(require=False)\n            for ep in pkg_resources.iter_entry_points(\n                \"cryptography.backends\"\n            )\n        ]\n\n    return _available_backends_list\n\n_default_backend = None\n\n\ndef default_backend():\n    global _default_backend\n\n    if _default_backend is None:\n        _default_backend = MultiBackend(_available_backends())\n\n    return _default_backend\n", "path": "src/cryptography/hazmat/backends/__init__.py"}]}