prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  pt_BR email not returning valid email addresses
  When creating a fake Factory with the pt_BR it is not returning valid email addresses.
  Example:
  ```
  melocauã@bol.com.br
  joão-gabrielferreira@ig.com.br
  lavíniarodrigues@sales.org
  vitória78@example.br
  ```
  
  </issue>
  <code>
  [start of faker/providers/internet/pt_BR/__init__.py]
  1 # coding=utf-8
  2 from __future__ import unicode_literals
  3 from .. import Provider as InternetProvider
  4 
  5 
  6 class Provider(InternetProvider):
  7     safe_email_tlds = ('com', 'net', 'br', 'br')
  8     free_email_domains = (
  9         'gmail.com',
  10         'hotmail.com',
  11         'yahoo.com.br',
  12         'uol.com.br',
  13         'bol.com.br',
  14         'ig.com.br')
  15     tlds = ('com', 'com', 'com', 'net', 'org', 'br', 'br', 'br')
  16
  [end of faker/providers/internet/pt_BR/__init__.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/faker/providers/internet/pt_BR/__init__.py b/faker/providers/internet/pt_BR/__init__.py
  --- a/faker/providers/internet/pt_BR/__init__.py
  +++ b/faker/providers/internet/pt_BR/__init__.py
  @@ -13,3 +13,11 @@
           'bol.com.br',
           'ig.com.br')
       tlds = ('com', 'com', 'com', 'net', 'org', 'br', 'br', 'br')
  +    replacements = (
  +        ('à', 'a'), ('â', 'a'), ('ã', 'a'),
  +        ('ç', 'c'),
  +        ('é', 'e'), ('ê', 'e'),
  +        ('í', 'i'),
  +        ('ô', 'o'), ('ö', 'o'), ('õ', 'o'),
  +        ('ú', 'u'),
  +    )
  
verification_info: {"golden_diff": "diff --git a/faker/providers/internet/pt_BR/__init__.py b/faker/providers/internet/pt_BR/__init__.py\n--- a/faker/providers/internet/pt_BR/__init__.py\n+++ b/faker/providers/internet/pt_BR/__init__.py\n@@ -13,3 +13,11 @@\n         'bol.com.br',\n         'ig.com.br')\n     tlds = ('com', 'com', 'com', 'net', 'org', 'br', 'br', 'br')\n+    replacements = (\n+        ('\u00e0', 'a'), ('\u00e2', 'a'), ('\u00e3', 'a'),\n+        ('\u00e7', 'c'),\n+        ('\u00e9', 'e'), ('\u00ea', 'e'),\n+        ('\u00ed', 'i'),\n+        ('\u00f4', 'o'), ('\u00f6', 'o'), ('\u00f5', 'o'),\n+        ('\u00fa', 'u'),\n+    )\n", "issue": "pt_BR email not returning valid email addresses\nWhen creating a fake Factory with the pt_BR it is not returning valid email addresses.\r\nExample:\r\n```\r\nmelocau\u00e3@bol.com.br\r\njo\u00e3o-gabrielferreira@ig.com.br\r\nlav\u00edniarodrigues@sales.org\r\nvit\u00f3ria78@example.br\r\n```\n", "before_files": [{"content": "# coding=utf-8\nfrom __future__ import unicode_literals\nfrom .. import Provider as InternetProvider\n\n\nclass Provider(InternetProvider):\n    safe_email_tlds = ('com', 'net', 'br', 'br')\n    free_email_domains = (\n        'gmail.com',\n        'hotmail.com',\n        'yahoo.com.br',\n        'uol.com.br',\n        'bol.com.br',\n        'ig.com.br')\n    tlds = ('com', 'com', 'com', 'net', 'org', 'br', 'br', 'br')\n", "path": "faker/providers/internet/pt_BR/__init__.py"}]}