Page MenuHomePhabricator

remove magic coding comments
Closed, ResolvedPublic

Description

Introduction

Magic coding comments like
# -*- coding: utf-8 -*-
is for Python 2 whereas Python 3 uses utf-8 by default and can be omitted.

What to do?

  • Remove all magic coding comments from all Python script files. They can be found here.

Event Timeline

Xqt triaged this task as Low priority.Dec 30 2020, 4:11 PM

@TemporalPincher: I removd you from assignee of this task. Feel free to claim it again if you are going to work on it. But others may also claim this task.

hey
i have to remove this comment
but when i removed this comment there is one blank line remaining at this place of comment

image.png (768×1 px, 141 KB)

is it okay or i have to remove blank line too.......

is it okay or i have to remove blank line too.......

You have to remove this blank line too.

Change 657818 had a related patch set uploaded (by Bharatkhatri; owner: Bharatkhatri):
[pywikibot/core@master] Removed remove magic coding comments # -*- coding: utf-8 -*-

https://gerrit.wikimedia.org/r/657818

Change 657818 merged by jenkins-bot:
[pywikibot/core@master] Removed remove magic coding comments # -*- coding: utf-8 -*-

https://gerrit.wikimedia.org/r/657818