prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  "raw" view is not raw, adds extra backslash
  #### Problem Description
  
  I just noticed during https://github.com/mitmproxy/mitmproxy/issues/5469#issuecomment-1191343747
  
  #### Steps to reproduce the behavior:
  
  http.txt
  
  ```
  HTTP/1.1 200 OK
  Content-Type: text/plain
  Content-Length: 1
  
  \
  ```
  
  1. `ncat -l 1337 < http.txt`
  2. `mitmproxy`
  3. `curl --proxy localhost:8080 http://127.0.0.1:1337`
  
  raw is `\\`:
  
  ![image](https://user-images.githubusercontent.com/679144/180199838-07c02668-5dab-4210-b5b6-aea78066e0fd.png)
  
  hex:
  
  ![image](https://user-images.githubusercontent.com/679144/180199860-2cdd9455-7846-4921-b67c-6b9c3669b268.png)
  
  #### System Information
  
  ```
  Mitmproxy: 8.1.1 binary
  Python:    3.10.5
  OpenSSL:   OpenSSL 3.0.3 3 May 2022
  Platform:  Linux-5.15.0-41-generic-x86_64-with-glibc2.35
  ```
  
  
  </issue>
  <code>
  [start of mitmproxy/contentviews/raw.py]
  1 from . import base
  2 from mitmproxy.utils import strutils
  3 
  4 
  5 class ViewRaw(base.View):
  6     name = "Raw"
  7 
  8     def __call__(self, data, **metadata):
  9         return "Raw", base.format_text(strutils.bytes_to_escaped_str(data, True))
  10 
  11     def render_priority(self, data: bytes, **metadata) -> float:
  12         return 0.1 * float(bool(data))
  13
  [end of mitmproxy/contentviews/raw.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/mitmproxy/contentviews/raw.py b/mitmproxy/contentviews/raw.py
  --- a/mitmproxy/contentviews/raw.py
  +++ b/mitmproxy/contentviews/raw.py
  @@ -1,12 +1,11 @@
   from . import base
  -from mitmproxy.utils import strutils
   
   
   class ViewRaw(base.View):
       name = "Raw"
   
       def __call__(self, data, **metadata):
  -        return "Raw", base.format_text(strutils.bytes_to_escaped_str(data, True))
  +        return "Raw", base.format_text(data)
   
       def render_priority(self, data: bytes, **metadata) -> float:
           return 0.1 * float(bool(data))
  
verification_info: {"golden_diff": "diff --git a/mitmproxy/contentviews/raw.py b/mitmproxy/contentviews/raw.py\n--- a/mitmproxy/contentviews/raw.py\n+++ b/mitmproxy/contentviews/raw.py\n@@ -1,12 +1,11 @@\n from . import base\n-from mitmproxy.utils import strutils\n \n \n class ViewRaw(base.View):\n     name = \"Raw\"\n \n     def __call__(self, data, **metadata):\n-        return \"Raw\", base.format_text(strutils.bytes_to_escaped_str(data, True))\n+        return \"Raw\", base.format_text(data)\n \n     def render_priority(self, data: bytes, **metadata) -> float:\n         return 0.1 * float(bool(data))\n", "issue": "\"raw\" view is not raw, adds extra backslash\n#### Problem Description\r\n\r\nI just noticed during https://github.com/mitmproxy/mitmproxy/issues/5469#issuecomment-1191343747\r\n\r\n#### Steps to reproduce the behavior:\r\n\r\nhttp.txt\r\n\r\n```\r\nHTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 1\r\n\r\n\\\r\n```\r\n\r\n1. `ncat -l 1337 < http.txt`\r\n2. `mitmproxy`\r\n3. `curl --proxy localhost:8080 http://127.0.0.1:1337`\r\n\r\nraw is `\\\\`:\r\n\r\n![image](https://user-images.githubusercontent.com/679144/180199838-07c02668-5dab-4210-b5b6-aea78066e0fd.png)\r\n\r\nhex:\r\n\r\n![image](https://user-images.githubusercontent.com/679144/180199860-2cdd9455-7846-4921-b67c-6b9c3669b268.png)\r\n\r\n#### System Information\r\n\r\n```\r\nMitmproxy: 8.1.1 binary\r\nPython:    3.10.5\r\nOpenSSL:   OpenSSL 3.0.3 3 May 2022\r\nPlatform:  Linux-5.15.0-41-generic-x86_64-with-glibc2.35\r\n```\r\n\n", "before_files": [{"content": "from . import base\nfrom mitmproxy.utils import strutils\n\n\nclass ViewRaw(base.View):\n    name = \"Raw\"\n\n    def __call__(self, data, **metadata):\n        return \"Raw\", base.format_text(strutils.bytes_to_escaped_str(data, True))\n\n    def render_priority(self, data: bytes, **metadata) -> float:\n        return 0.1 * float(bool(data))\n", "path": "mitmproxy/contentviews/raw.py"}]}