1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

make linters happy

This commit is contained in:
Parker Hancock
2023-12-08 10:57:32 -06:00
committed by Jair Henrique
parent f5fc7aac22
commit f4467a8d6c
3 changed files with 2 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ def convert_body_to_unicode(resp):
If the request or responses body is bytes, decode it to a string
(for python3 support)
"""
if type(resp) is not dict:
if not isinstance(resp, dict):
# Some of the tests just serialize and deserialize a string.
return _convert_string_to_unicode(resp)
else: