We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update flask version
Our minimum required flask version is too old (saw at least one person having an issue https://stackoverflow.com/questions/61969924/typeerror-when-i-run-a-locustfile-py)

https://flask.palletsprojects.com/en/1.1.x/changelog/#version-0-12-5 is a minimum, but we should probably go to 1.x right away.

I can do the PR

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 import ast
3 import os
4 import re
5 import sys
6 
7 from setuptools import find_packages, setup
8 
9 ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
10 
11 # parse version from locust/__init__.py
12 _version_re = re.compile(r'__version__\s+=\s+(.*)')
13 _init_file = os.path.join(ROOT_PATH, "locust", "__init__.py")
14 with open(_init_file, 'rb') as f:
15     version = str(ast.literal_eval(_version_re.search(
16         f.read().decode('utf-8')).group(1)))
17 
18 setup(
19     name='locust',
20     version=version,
21     install_requires=[
22         "gevent>=1.5.0",
23         "flask>=0.10.1", 
24         "requests>=2.9.1", 
25         "msgpack>=0.6.2", 
26         "pyzmq>=16.0.2", 
27         "geventhttpclient>=1.4.2",
28         "ConfigArgParse>=1.0",
29         "psutil>=5.6.7",
30         "Flask-BasicAuth>=0.2.0"
31     ],
32     test_suite="locust.test",
33     tests_require=[
34         'cryptography',
35         'mock',
36         'pyquery',
37     ], 
38 )
39
```
--- 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/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@
     version=version,
     install_requires=[
         "gevent>=1.5.0",
-        "flask>=0.10.1", 
+        "flask>=1.1.2", 
         "requests>=2.9.1", 
         "msgpack>=0.6.2", 
         "pyzmq>=16.0.2",

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -20,7 +20,7 @@\n     version=version,\n     install_requires=[\n         \"gevent>=1.5.0\",\n-        \"flask>=0.10.1\", \n+        \"flask>=1.1.2\", \n         \"requests>=2.9.1\", \n         \"msgpack>=0.6.2\", \n         \"pyzmq>=16.0.2\",\n", "issue": "Update flask version\nOur minimum required flask version is too old (saw at least one person having an issue https://stackoverflow.com/questions/61969924/typeerror-when-i-run-a-locustfile-py)\r\n\r\nhttps://flask.palletsprojects.com/en/1.1.x/changelog/#version-0-12-5 is a minimum, but we should probably go to 1.x right away.\r\n\r\nI can do the PR\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\nimport ast\nimport os\nimport re\nimport sys\n\nfrom setuptools import find_packages, setup\n\nROOT_PATH = os.path.abspath(os.path.dirname(__file__))\n\n# parse version from locust/__init__.py\n_version_re = re.compile(r'__version__\\s+=\\s+(.*)')\n_init_file = os.path.join(ROOT_PATH, \"locust\", \"__init__.py\")\nwith open(_init_file, 'rb') as f:\n    version = str(ast.literal_eval(_version_re.search(\n        f.read().decode('utf-8')).group(1)))\n\nsetup(\n    name='locust',\n    version=version,\n    install_requires=[\n        \"gevent>=1.5.0\",\n        \"flask>=0.10.1\", \n        \"requests>=2.9.1\", \n        \"msgpack>=0.6.2\", \n        \"pyzmq>=16.0.2\", \n        \"geventhttpclient>=1.4.2\",\n        \"ConfigArgParse>=1.0\",\n        \"psutil>=5.6.7\",\n        \"Flask-BasicAuth>=0.2.0\"\n    ],\n    test_suite=\"locust.test\",\n    tests_require=[\n        'cryptography',\n        'mock',\n        'pyquery',\n    ], \n)\n", "path": "setup.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\nimport ast\nimport os\nimport re\nimport sys\n\nfrom setuptools import find_packages, setup\n\nROOT_PATH = os.path.abspath(os.path.dirname(__file__))\n\n# parse version from locust/__init__.py\n_version_re = re.compile(r'__version__\\s+=\\s+(.*)')\n_init_file = os.path.join(ROOT_PATH, \"locust\", \"__init__.py\")\nwith open(_init_file, 'rb') as f:\n    version = str(ast.literal_eval(_version_re.search(\n        f.read().decode('utf-8')).group(1)))\n\nsetup(\n    name='locust',\n    version=version,\n    install_requires=[\n        \"gevent>=1.5.0\",\n        \"flask>=1.1.2\", \n        \"requests>=2.9.1\", \n        \"msgpack>=0.6.2\", \n        \"pyzmq>=16.0.2\", \n        \"geventhttpclient>=1.4.2\",\n        \"ConfigArgParse>=1.0\",\n        \"psutil>=5.6.7\",\n        \"Flask-BasicAuth>=0.2.0\"\n    ],\n    test_suite=\"locust.test\",\n    tests_require=[\n        'cryptography',\n        'mock',\n        'pyquery',\n    ], \n)\n", "path": "setup.py"}]}