Skip to content

Commit dafd19d

Browse files
committed
Don't crash with bytes literals
1 parent 25a19a7 commit dafd19d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flake8_strftime/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def visit_Constant(self, node: ast.Constant):
7777
:param node: The node being visited
7878
"""
7979

80-
if not isinstance(node.s, (str, bytes)):
80+
if not isinstance(node.s, str):
8181
return
8282

8383
self._check_linux(node)

0 commit comments

Comments
 (0)