Skip to content

Commit

Permalink
PEP8 validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnagidza committed Jul 28, 2023
1 parent 8fd0a03 commit d829c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 0x04-utf8_validation/0-validate_utf8.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def is_multi_byte(number):
# check if the next n_bytes - 1 numbers are valid
for _ in range(n_bytes - 1):
number = next(data_iter, None)
if number is None or not is_multi_byte(format(number, '#010b')[-8:]):
if not number or not is_multi_byte(format(number, '#010b')[-8:]):
return False
return True

Expand Down

0 comments on commit d829c7c

Please sign in to comment.