.. _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.* **Problematic code:** .. literalinclude:: /data/messages/a/anomalous-unicode-escape-in-string/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/a/anomalous-unicode-escape-in-string/good.py :language: python Created by the `string `__ checker.