Skip to content

Commit b970d42

Browse files
committed
Remove encoding declarations
In Python 3, UTF-8 is the default encoding when no encoding declaration is present, and omitting the encoding declaration when UTF-8 is intended is officially suggested. - https://docs.python.org/3/reference/lexical_analysis.html - https://pep8.org/#source-file-encoding Furthermore, not all files in this project had them (and their presence or absence seems to have been mainly for historical reasons rather than file contents).
1 parent af1b5d4 commit b970d42

File tree

13 files changed

+1
-15
lines changed

13 files changed

+1
-15
lines changed

doc/source/conf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# -*- coding: utf-8 -*-
2-
#
3-
# GitPython documentation build configuration file, created by
1+
# GitPython documentation build configuration file, originally created by
42
# sphinx-quickstart on Sat Jan 24 11:51:01 2009.
53
#
64
# This file is execfile()d with the current directory set to its containing dir.

git/compat.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# compat.py
32
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
43
#

git/types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# This module is part of GitPython and is released under
32
# the BSD License: https://opensource.org/license/bsd-3-clause/
43

test/test_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# test_base.py
32
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
43
#

test/test_clone.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# This module is part of GitPython and is released under
32
# the BSD License: https://opensource.org/license/bsd-3-clause/
43

test/test_commit.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# test_commit.py
32
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
43
#

test/test_diff.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# coding: utf-8
21
# test_diff.py
32
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
43
#

test/test_docs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# test_docs.py
32
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
43
#

test/test_exc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# test_exc.py
32
# Copyright (C) 2008, 2009, 2016 Michael Trier (mtrier@gmail.com) and contributors
43
#

test/test_git.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# test_git.py
32
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
43
#

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy