prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Failed to upload a video.
  **Describe the bug**
  Failed to upload a video.
  
  **To Reproduce**
  Steps to reproduce the behavior:
  submit any video
  
  **Code/Logs**
  ```
  >>> s = sbrdt.submit_video ('video', 'myvideo.mp4')
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/home/gaspar/.local/lib/python3.9/site-packages/praw/models/reddit/subreddit.py", line 1383, in submit_video
      video_poster_url=self._upload_media(thumbnail_path)[0],
    File "/home/gaspar/.local/lib/python3.9/site-packages/praw/models/reddit/subreddit.py", line 695, in _upload_media
      with open(media_path, "rb") as media:
  FileNotFoundError: [Errno 2] No such file or directory: '/home/gaspar/.local/lib/python3.9/site-packages/praw/images/PRAW logo.png'
  ```
  
  **System Info**
   - OS: Arch Linux
   - Python: 3.9.5
   - PRAW Version: 7.4.0
  
  
  </issue>
  <code>
  [start of setup.py]
  1 """praw setup.py"""
  2 
  3 import re
  4 from codecs import open
  5 from os import path
  6 
  7 from setuptools import find_packages, setup
  8 
  9 PACKAGE_NAME = "praw"
  10 HERE = path.abspath(path.dirname(__file__))
  11 with open(path.join(HERE, "README.rst"), encoding="utf-8") as fp:
  12     README = fp.read()
  13 with open(path.join(HERE, PACKAGE_NAME, "const.py"), encoding="utf-8") as fp:
  14     VERSION = re.search('__version__ = "([^"]+)"', fp.read()).group(1)
  15 
  16 extras = {
  17     "ci": ["coveralls"],
  18     "dev": ["packaging"],
  19     "lint": [
  20         "pre-commit",
  21         "sphinx",
  22         "sphinx_rtd_theme",
  23     ],
  24     "readthedocs": ["sphinx", "sphinx_rtd_theme"],
  25     "test": [
  26         "betamax >=0.8, <0.9",
  27         "betamax-matchers >=0.3.0, <0.5",
  28         "pytest >=2.7.3",
  29     ],
  30 }
  31 extras["dev"] += extras["lint"] + extras["test"]
  32 
  33 setup(
  34     name=PACKAGE_NAME,
  35     author="Bryce Boe",
  36     author_email="bbzbryce@gmail.com",
  37     python_requires="~=3.6",
  38     classifiers=[
  39         "Development Status :: 5 - Production/Stable",
  40         "Environment :: Console",
  41         "Intended Audience :: Developers",
  42         "License :: OSI Approved :: BSD License",
  43         "Natural Language :: English",
  44         "Operating System :: OS Independent",
  45         "Programming Language :: Python",
  46         "Programming Language :: Python :: 3",
  47         "Programming Language :: Python :: 3.6",
  48         "Programming Language :: Python :: 3.7",
  49         "Programming Language :: Python :: 3.8",
  50         "Programming Language :: Python :: 3.9",
  51         "Programming Language :: Python :: 3.10",
  52         "Topic :: Utilities",
  53     ],
  54     description=(
  55         "PRAW, an acronym for `Python Reddit API Wrapper`, is a python package that"
  56         " allows for simple access to reddit's API."
  57     ),
  58     extras_require=extras,
  59     install_requires=[
  60         "prawcore >=2.1, <3",
  61         "update_checker >=0.18",
  62         "websocket-client >=0.54.0",
  63     ],
  64     keywords="reddit api wrapper",
  65     license="Simplified BSD License",
  66     long_description=README,
  67     package_data={"": ["LICENSE.txt"], PACKAGE_NAME: ["*.ini", "images/*.jpg"]},
  68     packages=find_packages(exclude=["tests", "tests.*", "tools", "tools.*"]),
  69     project_urls={
  70         "Change Log": "https://praw.readthedocs.io/en/latest/package_info/change_log.html",
  71         "Documentation": "https://praw.readthedocs.io/",
  72         "Issue Tracker": "https://github.com/praw-dev/praw/issues",
  73         "Source Code": "https://github.com/praw-dev/praw",
  74     },
  75     version=VERSION,
  76 )
  77
  [end of setup.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -64,7 +64,7 @@
       keywords="reddit api wrapper",
       license="Simplified BSD License",
       long_description=README,
  -    package_data={"": ["LICENSE.txt"], PACKAGE_NAME: ["*.ini", "images/*.jpg"]},
  +    package_data={"": ["LICENSE.txt"], PACKAGE_NAME: ["*.ini", "images/*.png"]},
       packages=find_packages(exclude=["tests", "tests.*", "tools", "tools.*"]),
       project_urls={
           "Change Log": "https://praw.readthedocs.io/en/latest/package_info/change_log.html",
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -64,7 +64,7 @@\n     keywords=\"reddit api wrapper\",\n     license=\"Simplified BSD License\",\n     long_description=README,\n-    package_data={\"\": [\"LICENSE.txt\"], PACKAGE_NAME: [\"*.ini\", \"images/*.jpg\"]},\n+    package_data={\"\": [\"LICENSE.txt\"], PACKAGE_NAME: [\"*.ini\", \"images/*.png\"]},\n     packages=find_packages(exclude=[\"tests\", \"tests.*\", \"tools\", \"tools.*\"]),\n     project_urls={\n         \"Change Log\": \"https://praw.readthedocs.io/en/latest/package_info/change_log.html\",\n", "issue": "Failed to upload a video.\n**Describe the bug**\r\nFailed to upload a video.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\nsubmit any video\r\n\r\n**Code/Logs**\r\n```\r\n>>> s = sbrdt.submit_video ('video', 'myvideo.mp4')\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/gaspar/.local/lib/python3.9/site-packages/praw/models/reddit/subreddit.py\", line 1383, in submit_video\r\n    video_poster_url=self._upload_media(thumbnail_path)[0],\r\n  File \"/home/gaspar/.local/lib/python3.9/site-packages/praw/models/reddit/subreddit.py\", line 695, in _upload_media\r\n    with open(media_path, \"rb\") as media:\r\nFileNotFoundError: [Errno 2] No such file or directory: '/home/gaspar/.local/lib/python3.9/site-packages/praw/images/PRAW logo.png'\r\n```\r\n\r\n**System Info**\r\n - OS: Arch Linux\r\n - Python: 3.9.5\r\n - PRAW Version: 7.4.0\r\n\n", "before_files": [{"content": "\"\"\"praw setup.py\"\"\"\n\nimport re\nfrom codecs import open\nfrom os import path\n\nfrom setuptools import find_packages, setup\n\nPACKAGE_NAME = \"praw\"\nHERE = path.abspath(path.dirname(__file__))\nwith open(path.join(HERE, \"README.rst\"), encoding=\"utf-8\") as fp:\n    README = fp.read()\nwith open(path.join(HERE, PACKAGE_NAME, \"const.py\"), encoding=\"utf-8\") as fp:\n    VERSION = re.search('__version__ = \"([^\"]+)\"', fp.read()).group(1)\n\nextras = {\n    \"ci\": [\"coveralls\"],\n    \"dev\": [\"packaging\"],\n    \"lint\": [\n        \"pre-commit\",\n        \"sphinx\",\n        \"sphinx_rtd_theme\",\n    ],\n    \"readthedocs\": [\"sphinx\", \"sphinx_rtd_theme\"],\n    \"test\": [\n        \"betamax >=0.8, <0.9\",\n        \"betamax-matchers >=0.3.0, <0.5\",\n        \"pytest >=2.7.3\",\n    ],\n}\nextras[\"dev\"] += extras[\"lint\"] + extras[\"test\"]\n\nsetup(\n    name=PACKAGE_NAME,\n    author=\"Bryce Boe\",\n    author_email=\"bbzbryce@gmail.com\",\n    python_requires=\"~=3.6\",\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"Environment :: Console\",\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: BSD License\",\n        \"Natural Language :: English\",\n        \"Operating System :: OS Independent\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3.10\",\n        \"Topic :: Utilities\",\n    ],\n    description=(\n        \"PRAW, an acronym for `Python Reddit API Wrapper`, is a python package that\"\n        \" allows for simple access to reddit's API.\"\n    ),\n    extras_require=extras,\n    install_requires=[\n        \"prawcore >=2.1, <3\",\n        \"update_checker >=0.18\",\n        \"websocket-client >=0.54.0\",\n    ],\n    keywords=\"reddit api wrapper\",\n    license=\"Simplified BSD License\",\n    long_description=README,\n    package_data={\"\": [\"LICENSE.txt\"], PACKAGE_NAME: [\"*.ini\", \"images/*.jpg\"]},\n    packages=find_packages(exclude=[\"tests\", \"tests.*\", \"tools\", \"tools.*\"]),\n    project_urls={\n        \"Change Log\": \"https://praw.readthedocs.io/en/latest/package_info/change_log.html\",\n        \"Documentation\": \"https://praw.readthedocs.io/\",\n        \"Issue Tracker\": \"https://github.com/praw-dev/praw/issues\",\n        \"Source Code\": \"https://github.com/praw-dev/praw\",\n    },\n    version=VERSION,\n)\n", "path": "setup.py"}]}