prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Deprecation message in Paramiko
  Motivation
  ----------
  Paramiko outputs a deprecation message due to an outdated security algorithm. We do not depend on that algorithm.
  https://github.com/paramiko/paramiko/pull/2039
  
  Modification
  ------------
  The paramiko team is aware of the problem. They opened a PR to fix it.
  
  
  
  </issue>
  <code>
  [start of lib/rucio/common/extra.py]
  1 # -*- coding: utf-8 -*-
  2 # Copyright 2021 CERN
  3 #
  4 # Licensed under the Apache License, Version 2.0 (the "License");
  5 # you may not use this file except in compliance with the License.
  6 # You may obtain a copy of the License at
  7 #
  8 #    http://www.apache.org/licenses/LICENSE-2.0
  9 #
  10 # Unless required by applicable law or agreed to in writing, software
  11 # distributed under the License is distributed on an "AS IS" BASIS,
  12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13 # See the License for the specific language governing permissions and
  14 # limitations under the License.
  15 #
  16 # Authors:
  17 # - Benedikt Ziemons <benedikt.ziemons@cern.ch>, 2021
  18 
  19 import importlib
  20 
  21 
  22 def import_extras(module_list):
  23     out = dict()
  24     for mod in module_list:
  25         out[mod] = None
  26         try:
  27             out[mod] = importlib.import_module(mod)
  28         except ImportError:
  29             pass
  30     return out
  31
  [end of lib/rucio/common/extra.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/lib/rucio/common/extra.py b/lib/rucio/common/extra.py
  --- a/lib/rucio/common/extra.py
  +++ b/lib/rucio/common/extra.py
  @@ -17,6 +17,7 @@
   # - Benedikt Ziemons <benedikt.ziemons@cern.ch>, 2021
   
   import importlib
  +import warnings
   
   
   def import_extras(module_list):
  @@ -24,7 +25,12 @@
       for mod in module_list:
           out[mod] = None
           try:
  -            out[mod] = importlib.import_module(mod)
  +            with warnings.catch_warnings():
  +                # TODO: remove when https://github.com/paramiko/paramiko/issues/2038 is fixed
  +                warnings.filterwarnings('ignore', 'Blowfish has been deprecated', module='paramiko')
  +                # TODO: deprecated python 2 and 3.6 too ...
  +                warnings.filterwarnings('ignore', 'Python .* is no longer supported', module='paramiko')
  +                out[mod] = importlib.import_module(mod)
           except ImportError:
               pass
       return out
  
verification_info: {"golden_diff": "diff --git a/lib/rucio/common/extra.py b/lib/rucio/common/extra.py\n--- a/lib/rucio/common/extra.py\n+++ b/lib/rucio/common/extra.py\n@@ -17,6 +17,7 @@\n # - Benedikt Ziemons <benedikt.ziemons@cern.ch>, 2021\n \n import importlib\n+import warnings\n \n \n def import_extras(module_list):\n@@ -24,7 +25,12 @@\n     for mod in module_list:\n         out[mod] = None\n         try:\n-            out[mod] = importlib.import_module(mod)\n+            with warnings.catch_warnings():\n+                # TODO: remove when https://github.com/paramiko/paramiko/issues/2038 is fixed\n+                warnings.filterwarnings('ignore', 'Blowfish has been deprecated', module='paramiko')\n+                # TODO: deprecated python 2 and 3.6 too ...\n+                warnings.filterwarnings('ignore', 'Python .* is no longer supported', module='paramiko')\n+                out[mod] = importlib.import_module(mod)\n         except ImportError:\n             pass\n     return out\n", "issue": "Deprecation message in Paramiko\nMotivation\r\n----------\r\nParamiko outputs a deprecation message due to an outdated security algorithm. We do not depend on that algorithm.\r\nhttps://github.com/paramiko/paramiko/pull/2039\r\n\r\nModification\r\n------------\r\nThe paramiko team is aware of the problem. They opened a PR to fix it.\r\n\r\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n# Copyright 2021 CERN\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#    http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n# Authors:\n# - Benedikt Ziemons <benedikt.ziemons@cern.ch>, 2021\n\nimport importlib\n\n\ndef import_extras(module_list):\n    out = dict()\n    for mod in module_list:\n        out[mod] = None\n        try:\n            out[mod] = importlib.import_module(mod)\n        except ImportError:\n            pass\n    return out\n", "path": "lib/rucio/common/extra.py"}]}