Skip to content

Commit

Permalink
Ruff lint update: Use isinstance (#5520)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyashton authored Aug 9, 2023
1 parent 963d496 commit bc91eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/infra/piccolo/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def append(
headers["content-type"] = content_type

# Convert body to bytes if we were given a string
if type(body) == str:
if isinstance(body, str):
body = body.encode("utf-8")

request_line = f"{verb.upper()} {path} {http_version}"
Expand Down

0 comments on commit bc91eba

Please sign in to comment.