equal
deleted
inserted
replaced
978 # 24.4, so we allow emacs 24.4, 24.5, and 25+ (24.5 was the last |
978 # 24.4, so we allow emacs 24.4, 24.5, and 25+ (24.5 was the last |
979 # 24 release) |
979 # 24 release) |
980 return matchoutput('emacs --version', b'GNU Emacs 2(4.4|4.5|5|6|7|8|9)') |
980 return matchoutput('emacs --version', b'GNU Emacs 2(4.4|4.5|5|6|7|8|9)') |
981 |
981 |
982 |
982 |
983 # @check('black', 'the black formatter for python') |
983 @check('black', 'the black formatter for python') |
984 @check('grey', 'grey, the fork of the black formatter for python') |
|
985 def has_black(): |
984 def has_black(): |
986 # use that to actual black as soon as possible |
985 # use that to actual black as soon as possible |
987 # blackcmd = 'black --version' |
986 blackcmd = 'black --version' |
988 blackcmd = 'python3 $RUNTESTDIR/../contrib/grey.py --version' |
987 version_regex = b'black, version \d' |
989 # version_regex = b'black, version \d' |
|
990 version_regex = b'grey.py, version \d' |
|
991 return matchoutput(blackcmd, version_regex) |
988 return matchoutput(blackcmd, version_regex) |