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

13 files changed

+1
-15
lines changed

Diff for: doc/source/conf.py

+1-3
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.

Diff for: git/compat.py

-1
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 ([email protected]) and contributors
43
#

Diff for: git/types.py

-1
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

Diff for: test/test_base.py

-1
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 ([email protected]) and contributors
43
#

Diff for: test/test_clone.py

-1
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

Diff for: test/test_commit.py

-1
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 ([email protected]) and contributors
43
#

Diff for: test/test_diff.py

-1
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 ([email protected]) and contributors
43
#

Diff for: test/test_docs.py

-1
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 ([email protected]) and contributors
43
#

Diff for: test/test_exc.py

-1
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 ([email protected]) and contributors
43
#

Diff for: test/test_git.py

-1
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 ([email protected]) and contributors
43
#

Diff for: test/test_index.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# test_index.py
32
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
43
#

Diff for: test/test_repo.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# test_repo.py
32
# Copyright (C) 2008, 2009 Michael Trier ([email protected]) and contributors
43
#

Diff for: test/test_submodule.py

-1
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

0 commit comments

Comments
 (0)