Skip to content

Commit 95b5bf6

Browse files
committed
removed bytearray as unneeded
1 parent 54d0861 commit 95b5bf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cs50/sql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ def __escape(value):
388388
sqlparse.tokens.Number,
389389
sqlalchemy.types.Boolean().literal_processor(self._engine.dialect)(value))
390390

391-
# bytearray, bytes
392-
elif type(value) in [bytearray, bytes]:
391+
# bytes
392+
elif type(value) is bytes:
393393
if self._engine.url.get_backend_name() in ["mysql", "sqlite"]:
394394
return sqlparse.sql.Token(sqlparse.tokens.Other, f"x'{value.hex()}'") # https://dev.mysql.com/doc/refman/8.0/en/hexadecimal-literals.html
395395
elif self._engine.url.get_backend_name() == "postgresql":

0 commit comments

Comments
 (0)