X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/4ea75cd49521ed7fd8384e7a739e1abb1b6de46a..14e5ce5412efa53438df0180e735b3834df3b579:/src/black/mode.py diff --git a/src/black/mode.py b/src/black/mode.py index 6d45e3d..6b74c14 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 @@ -127,7 +127,8 @@ class Preview(Enum): """Individual preview style features.""" string_processing = auto() - hug_simple_powers = auto() + remove_redundant_parens = auto() + one_element_subscript = auto() class Deprecated(UserWarning): @@ -182,6 +183,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)