Closed milanbalazs closed 1 year ago
Merging #300 (60f36e6) into main (02bb01d) will decrease coverage by
0.46%
. The diff coverage is72.72%
.
@@ Coverage Diff @@
## main #300 +/- ##
==========================================
- Coverage 99.38% 98.93% -0.46%
==========================================
Files 20 20
Lines 655 659 +4
==========================================
+ Hits 651 652 +1
- Misses 4 7 +3
Impacted Files | Coverage Δ | |
---|---|---|
vulture/core.py | 98.52% <72.72%> (-0.88%) |
:arrow_down: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
Elegant solution! Thanks!
Description
If the code contains special characters which are not part of the
latin-1
codec, theprint
function will be failed with anUnicodeEncodeError
exception. Like below:If the string is encoded (default is
utf-8
) then the print function is able to print the related string. The users can identify the related file and line.An example output with my change:
Note:
Related Issue
Checklist:
tox -e fix-style
to format my code and checked the result withtox -e style
.