.. _anomalous-unicode-escape-in-string: anomalous-unicode-escape-in-string / W1402 ========================================== **Message emitted:** Anomalous Unicode escape in byte string: '%s'. String constant might be missing an r or u prefix. **Description:** *Used when an escape like \u is encountered in a byte string where it has no effect.* **Correct code:** .. code-block:: python print(b"\\u{0}".format("0394")) **Problematic code:** .. code-block:: python print(b"\u{0}".format("0394")) # [anomalous-unicode-escape-in-string] Created by ``string`` checker