A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nedbat/coveragepy/issues/351 below:

files with incorrect encoding are ignored in Python3 · Issue #351 · nedbat/coveragepy · GitHub

Originally reported by Thomas Tanner (Bitbucket: ttanner, GitHub: ttanner)

I've noticed a module containing a © (0xa9) character and specifying an incorrect PEP 263 source encoding (e.g. "-- coding: utf-8 --" or no encoding instead of "-- coding: latin1 --") is completely ignored by "coverage report -i" with Python 3.4, but not by Python 2.7.9.

This is inconsistent behaviour and surprising if you port from Python 2 to 3.

EDIT: -i flag


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4