prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Why a print statement in this code?
  @kaiyou, according git blame this is yours. I wonder if it was included for debugging purposes and not taken out anymore?
  
  https://github.com/Mailu/Mailu/blob/5c2439011413a114c470862f95206f8487fa4568/core/admin/mailu/internal/views/dovecot.py#L18
  
  </issue>
  <code>
  [start of core/admin/mailu/internal/views/dovecot.py]
  1 from mailu import models
  2 from mailu.internal import internal
  3 from flask import current_app as app
  4 
  5 import flask
  6 import socket
  7 import os
  8 
  9 @internal.route("/dovecot/passdb/<user_email>")
  10 def dovecot_passdb_dict(user_email):
  11     user = models.User.query.get(user_email) or flask.abort(404)
  12     allow_nets = []
  13     allow_nets.append(app.config["SUBNET"])
  14     if app.config["POD_ADDRESS_RANGE"]:
  15         allow_nets.append(app.config["POD_ADDRESS_RANGE"])
  16     print(allow_nets)
  17     return flask.jsonify({
  18         "password": None,
  19         "nopassword": "Y",
  20         "allow_nets": ",".join(allow_nets)
  21     })
  22 
  23 
  24 @internal.route("/dovecot/userdb/<user_email>")
  25 def dovecot_userdb_dict(user_email):
  26     user = models.User.query.get(user_email) or flask.abort(404)
  27     return flask.jsonify({
  28         "quota_rule": "*:bytes={}".format(user.quota_bytes)
  29     })
  30 
  31 
  32 @internal.route("/dovecot/quota/<ns>/<user_email>", methods=["POST"])
  33 def dovecot_quota(ns, user_email):
  34     user = models.User.query.get(user_email) or flask.abort(404)
  35     if ns == "storage":
  36         user.quota_bytes_used = flask.request.get_json()
  37         models.db.session.commit()
  38     return flask.jsonify(None)
  39 
  40 
  41 @internal.route("/dovecot/sieve/name/<script>/<user_email>")
  42 def dovecot_sieve_name(script, user_email):
  43     return flask.jsonify(script)
  44 
  45 
  46 @internal.route("/dovecot/sieve/data/default/<user_email>")
  47 def dovecot_sieve_data(user_email):
  48     user = models.User.query.get(user_email) or flask.abort(404)
  49     return flask.jsonify(flask.render_template("default.sieve", user=user))
  50
  [end of core/admin/mailu/internal/views/dovecot.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/core/admin/mailu/internal/views/dovecot.py b/core/admin/mailu/internal/views/dovecot.py
  --- a/core/admin/mailu/internal/views/dovecot.py
  +++ b/core/admin/mailu/internal/views/dovecot.py
  @@ -13,7 +13,6 @@
       allow_nets.append(app.config["SUBNET"])
       if app.config["POD_ADDRESS_RANGE"]:
           allow_nets.append(app.config["POD_ADDRESS_RANGE"])
  -    print(allow_nets)
       return flask.jsonify({
           "password": None,
           "nopassword": "Y",
  
verification_info: {"golden_diff": "diff --git a/core/admin/mailu/internal/views/dovecot.py b/core/admin/mailu/internal/views/dovecot.py\n--- a/core/admin/mailu/internal/views/dovecot.py\n+++ b/core/admin/mailu/internal/views/dovecot.py\n@@ -13,7 +13,6 @@\n     allow_nets.append(app.config[\"SUBNET\"])\n     if app.config[\"POD_ADDRESS_RANGE\"]:\n         allow_nets.append(app.config[\"POD_ADDRESS_RANGE\"])\n-    print(allow_nets)\n     return flask.jsonify({\n         \"password\": None,\n         \"nopassword\": \"Y\",\n", "issue": "Why a print statement in this code?\n@kaiyou, according git blame this is yours. I wonder if it was included for debugging purposes and not taken out anymore?\r\n\r\nhttps://github.com/Mailu/Mailu/blob/5c2439011413a114c470862f95206f8487fa4568/core/admin/mailu/internal/views/dovecot.py#L18\n", "before_files": [{"content": "from mailu import models\nfrom mailu.internal import internal\nfrom flask import current_app as app\n\nimport flask\nimport socket\nimport os\n\n@internal.route(\"/dovecot/passdb/<user_email>\")\ndef dovecot_passdb_dict(user_email):\n    user = models.User.query.get(user_email) or flask.abort(404)\n    allow_nets = []\n    allow_nets.append(app.config[\"SUBNET\"])\n    if app.config[\"POD_ADDRESS_RANGE\"]:\n        allow_nets.append(app.config[\"POD_ADDRESS_RANGE\"])\n    print(allow_nets)\n    return flask.jsonify({\n        \"password\": None,\n        \"nopassword\": \"Y\",\n        \"allow_nets\": \",\".join(allow_nets)\n    })\n\n\n@internal.route(\"/dovecot/userdb/<user_email>\")\ndef dovecot_userdb_dict(user_email):\n    user = models.User.query.get(user_email) or flask.abort(404)\n    return flask.jsonify({\n        \"quota_rule\": \"*:bytes={}\".format(user.quota_bytes)\n    })\n\n\n@internal.route(\"/dovecot/quota/<ns>/<user_email>\", methods=[\"POST\"])\ndef dovecot_quota(ns, user_email):\n    user = models.User.query.get(user_email) or flask.abort(404)\n    if ns == \"storage\":\n        user.quota_bytes_used = flask.request.get_json()\n        models.db.session.commit()\n    return flask.jsonify(None)\n\n\n@internal.route(\"/dovecot/sieve/name/<script>/<user_email>\")\ndef dovecot_sieve_name(script, user_email):\n    return flask.jsonify(script)\n\n\n@internal.route(\"/dovecot/sieve/data/default/<user_email>\")\ndef dovecot_sieve_data(user_email):\n    user = models.User.query.get(user_email) or flask.abort(404)\n    return flask.jsonify(flask.render_template(\"default.sieve\", user=user))\n", "path": "core/admin/mailu/internal/views/dovecot.py"}]}