style: add pyupgrade check, 2.7+

This commit is contained in:
Henry Schreiner
2021-07-12 15:01:19 -04:00
committed by Henry Schreiner
parent 11e12fe455
commit 0e2e003508
5 changed files with 22 additions and 17 deletions

View File

@@ -50,7 +50,7 @@ def test_single_char_arguments():
"""Tests failures for passing invalid inputs to char-accepting functions"""
def toobig_message(r):
return "Character code point not in range({0:#x})".format(r)
return "Character code point not in range({:#x})".format(r)
toolong_message = "Expected a character, but multi-character string found"