.. _unexpected-line-ending-format: unexpected-line-ending-format / C0328 ===================================== **Message emitted:** ``Unexpected line ending format. There is '%s' while it should be '%s'.`` **Description:** *Used when there is different newline than expected.* **Problematic code:** .. literalinclude:: /data/messages/u/unexpected-line-ending-format/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/u/unexpected-line-ending-format/good.py :language: python **Configuration file:** .. literalinclude:: /data/messages/u/unexpected-line-ending-format/pylintrc :language: ini **Related links:** - `History of CRLF and LF `_ - `Dealing with line endings in Git `_ - `A Collection of Useful .gitattributes Templates `_ Created by the `format `__ checker.