X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/147526451a43e9296ca963ed8e6b7224db93e69b..67eaf2466596394d5765ba4026d34e7b822814ab:/src/black/mode.py?ds=inline diff --git a/src/black/mode.py b/src/black/mode.py index 6d45e3d..455ed36 100644 --- a/src/black/mode.py +++ b/src/black/mode.py @@ -4,7 +4,7 @@ Mostly around Python language feature support per version and Black configuratio chosen by the user. """ -from hashlib import md5 +from hashlib import sha256 import sys from dataclasses import dataclass, field @@ -182,6 +182,6 @@ class Mode: str(int(self.magic_trailing_comma)), str(int(self.experimental_string_processing)), str(int(self.preview)), - md5((",".join(sorted(self.python_cell_magics))).encode()).hexdigest(), + sha256((",".join(sorted(self.python_cell_magics))).encode()).hexdigest(), ] return ".".join(parts)