Skip to content

Get rid of # -*- coding: utf-8 -*-? #11598

Closed

Description

@DimitriPapadopoulos

Description of the problem

UTF-8 is implicit in Python 3.

Is it OK to remove line # -*- coding: utf-8 -*- from Python files?

Steps to reproduce

$ grep -R 'coding: utf-8'
tutorials/epochs/20_visualize_epochs.py:# -*- coding: utf-8 -*-
tutorials/epochs/15_baseline_regression.py:# -*- coding: utf-8 -*-
tutorials/epochs/10_epochs_overview.py:# -*- coding: utf-8 -*-
tutorials/epochs/60_make_fixed_length_epochs.py:# -*- coding: utf-8 -*-
...


### Link to data

_No response_

### Expected results

Remove `# -*- coding: utf-8 -*-` which should be implicit in Python 3 files.

### Actual results

Explicit `# -*- coding: utf-8 -*-` in Python files.

### Additional information

-

Activity

  1. cbrnr commented on Mar 26, 2023

    @cbrnr
    Contributor

    Fine with me.

  2. agramfort commented on Mar 26, 2023

    @agramfort
    SponsorMember

    works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions