prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  coala_delete_orig: Modify message
  Modify message about `Couldn't delete... <filename>`
  
  @sils1297 please suggest a better message.
  
  
  </issue>
  <code>
  [start of coalib/coala_delete_orig.py]
  1 import os
  2 
  3 from pyprint.ConsolePrinter import ConsolePrinter
  4 
  5 from coalib.output.printers.LogPrinter import LogPrinter
  6 from coalib.parsing import Globbing
  7 from coalib.settings.ConfigurationGathering import get_config_directory
  8 from coalib.settings.Section import Section
  9 
  10 
  11 def main(log_printer=None, section: Section=None):
  12     start_path = get_config_directory(section)
  13     log_printer = log_printer or LogPrinter(ConsolePrinter())
  14 
  15     if start_path is None:
  16         return 255
  17 
  18     orig_files = Globbing.glob(os.path.abspath(
  19         os.path.join(start_path, '**', '*.orig')))
  20 
  21     not_deleted = 0
  22     for ofile in orig_files:
  23         log_printer.info("Deleting old backup file... "
  24                          + os.path.relpath(ofile))
  25         try:
  26             os.remove(ofile)
  27         except OSError as oserror:
  28             not_deleted += 1
  29             log_printer.warn("Couldn't delete... {}. {}".format(
  30                 os.path.relpath(ofile), oserror.strerror))
  31 
  32     if not_deleted:
  33         log_printer.warn(str(not_deleted) + " .orig backup files could not be"
  34                          " deleted, possibly because you lack the permission"
  35                          " to do so. coala may not be able to create"
  36                          " backup files when patches are applied.")
  37     return 0
  38
  [end of coalib/coala_delete_orig.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/coalib/coala_delete_orig.py b/coalib/coala_delete_orig.py
  --- a/coalib/coala_delete_orig.py
  +++ b/coalib/coala_delete_orig.py
  @@ -26,7 +26,7 @@
               os.remove(ofile)
           except OSError as oserror:
               not_deleted += 1
  -            log_printer.warn("Couldn't delete... {}. {}".format(
  +            log_printer.warn("Couldn't delete {}. {}".format(
                   os.path.relpath(ofile), oserror.strerror))
   
       if not_deleted:
  
verification_info: {"golden_diff": "diff --git a/coalib/coala_delete_orig.py b/coalib/coala_delete_orig.py\n--- a/coalib/coala_delete_orig.py\n+++ b/coalib/coala_delete_orig.py\n@@ -26,7 +26,7 @@\n             os.remove(ofile)\n         except OSError as oserror:\n             not_deleted += 1\n-            log_printer.warn(\"Couldn't delete... {}. {}\".format(\n+            log_printer.warn(\"Couldn't delete {}. {}\".format(\n                 os.path.relpath(ofile), oserror.strerror))\n \n     if not_deleted:\n", "issue": "coala_delete_orig: Modify message\nModify message about `Couldn't delete... <filename>`\n\n@sils1297 please suggest a better message.\n\n", "before_files": [{"content": "import os\n\nfrom pyprint.ConsolePrinter import ConsolePrinter\n\nfrom coalib.output.printers.LogPrinter import LogPrinter\nfrom coalib.parsing import Globbing\nfrom coalib.settings.ConfigurationGathering import get_config_directory\nfrom coalib.settings.Section import Section\n\n\ndef main(log_printer=None, section: Section=None):\n    start_path = get_config_directory(section)\n    log_printer = log_printer or LogPrinter(ConsolePrinter())\n\n    if start_path is None:\n        return 255\n\n    orig_files = Globbing.glob(os.path.abspath(\n        os.path.join(start_path, '**', '*.orig')))\n\n    not_deleted = 0\n    for ofile in orig_files:\n        log_printer.info(\"Deleting old backup file... \"\n                         + os.path.relpath(ofile))\n        try:\n            os.remove(ofile)\n        except OSError as oserror:\n            not_deleted += 1\n            log_printer.warn(\"Couldn't delete... {}. {}\".format(\n                os.path.relpath(ofile), oserror.strerror))\n\n    if not_deleted:\n        log_printer.warn(str(not_deleted) + \" .orig backup files could not be\"\n                         \" deleted, possibly because you lack the permission\"\n                         \" to do so. coala may not be able to create\"\n                         \" backup files when patches are applied.\")\n    return 0\n", "path": "coalib/coala_delete_orig.py"}]}