question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--py3-plus: Remove unnecessary "# -*- coding: utf-8 -*-" cookie

See original GitHub issue

In Python 3, source files are decoded as utf-8 by default. This allows Python 3 only codebases to drop the encoding cookie, # -*- coding: utf-8 -*-. pyupgrade could include this transformation when --py3-plus is passed.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
asottilecommented, Aug 28, 2019

I’ve changed my mind, let’s do this

0reactions
a-t-0commented, Jun 2, 2022

Thank you, that is clear!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Delete every non utf-8 symbols from string - Stack Overflow
I have a big amount of files and parser. What I Have to do is strip all non utf-8 symbols and put data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found