Revert "Add bytes support to bitwise template filters" (#20552)

This commit is contained in:
Jan Bouwhuis 2021-12-03 08:31:01 +01:00 committed by GitHub
parent fe5dee1459
commit 10dd348db8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -568,8 +568,8 @@ The numeric functions and filters will not fail if the input is not a valid numb
- Filter `[x, y, ...] | max` will obtain the largest item in a sequence.
- Filter `[x, y, ...] | min` will obtain the smallest item in a sequence.
- Filter `[x, y, ...] | average` will return the average value of the sequence.
- Filter `value_one|bitwise_and(value_two, little_endian=False)` perform a bitwise and(&) operation with two values. If a value is a `bytes` object, it will be translated to an integer in Big-endian style (the first byte is contains the most significant bit). Set `little_endian` to `True` to parse `bytes` object in Little-endian style.
- Filter `value_one|bitwise_or(value_two, little_endian=False)` perform a bitwise or(\|) operation with two values. If a value is a `bytes` object, it will be translated to an integer in Big-endian style (the first byte is contains the most significant bit). Set `little_endian` to `True` to parse `bytes` object in Little-endian style.
- Filter `value_one|bitwise_and(value_two)` perform a bitwise and(&) operation with two values.
- Filter `value_one|bitwise_or(value_two)` perform a bitwise or(\|) operation with two values.
- Filter `ord` will return for a string of length one an integer representing the Unicode code point of the character when the argument is a Unicode object, or the value of the byte when the argument is an 8-bit string.
### String filters