# HG changeset patch # User Matt Harbison # Date 1736286381 18000 # Node ID f19a3f1437f33eb49d3494faadaa858b896dea70 # Parent b3e68fd7864b772e4d4d326dd6a78caaae6e961b pyupgrade: drop `coding=UTF-8` comments PEP-3120[1] (Python 3.0 in 2007) says that UTF-8 is the default encoding. That should be long enough ago that no reasonable editor would trip over this, and certainly any supported version of Python won't. The comments were probably harmless, but as `pyupgrade` has no mechanism to disable this change, omitting this change makes it unusable as a code checking tool, and makes it a pain to use occasionally to upgrade the source (since these changes would need to be manually reverted). [1] https://peps.python.org/pep-3120/ diff -r b3e68fd7864b -r f19a3f1437f3 doc/hgmanpage.py --- a/doc/hgmanpage.py Mon Jan 06 01:39:53 2025 -0500 +++ b/doc/hgmanpage.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # $Id: manpage.py 6110 2009-08-31 14:40:33Z grubert $ # Author: Engelbert Gruber # Copyright: This module is put into the public domain. diff -r b3e68fd7864b -r f19a3f1437f3 hgext/beautifygraph.py --- a/hgext/beautifygraph.py Mon Jan 06 01:39:53 2025 -0500 +++ b/hgext/beautifygraph.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,4 +1,3 @@ -# -*- coding: UTF-8 -*- # beautifygraph.py - improve graph output by using Unicode characters # # Copyright 2018 John Stiles diff -r b3e68fd7864b -r f19a3f1437f3 hgext/convert/transport.py --- a/hgext/convert/transport.py Mon Jan 06 01:39:53 2025 -0500 +++ b/hgext/convert/transport.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # Copyright (C) 2007 Daniel Holth # This is a stripped-down version of the original bzr-svn transport.py, # Copyright (C) 2006 Jelmer Vernooij diff -r b3e68fd7864b -r f19a3f1437f3 i18n/polib.py --- a/i18n/polib.py Mon Jan 06 01:39:53 2025 -0500 +++ b/i18n/polib.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,5 +1,4 @@ # no-check-code -# -* coding: utf-8 -*- # # License: MIT (see LICENSE file provided) # vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: diff -r b3e68fd7864b -r f19a3f1437f3 mercurial/copies.py --- a/mercurial/copies.py Mon Jan 06 01:39:53 2025 -0500 +++ b/mercurial/copies.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,4 +1,3 @@ -# coding: utf8 # copies.py - copy detection for Mercurial # # Copyright 2008 Olivia Mackall diff -r b3e68fd7864b -r f19a3f1437f3 mercurial/interfaces/repository.py --- a/mercurial/interfaces/repository.py Mon Jan 06 01:39:53 2025 -0500 +++ b/mercurial/interfaces/repository.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,5 +1,4 @@ # repository.py - Interfaces and base classes for repositories and peers. -# coding: utf-8 # # Copyright 2017 Gregory Szorc # diff -r b3e68fd7864b -r f19a3f1437f3 mercurial/localrepo.py --- a/mercurial/localrepo.py Mon Jan 06 01:39:53 2025 -0500 +++ b/mercurial/localrepo.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,5 +1,4 @@ # localrepo.py - read/write repository class for mercurial -# coding: utf-8 # # Copyright 2005-2007 Olivia Mackall # diff -r b3e68fd7864b -r f19a3f1437f3 mercurial/metadata.py --- a/mercurial/metadata.py Mon Jan 06 01:39:53 2025 -0500 +++ b/mercurial/metadata.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,4 +1,3 @@ -# coding: utf-8 # metadata.py -- code related to various metadata computation and access. # # Copyright 2019 Google, Inc diff -r b3e68fd7864b -r f19a3f1437f3 mercurial/revlog.py --- a/mercurial/revlog.py Mon Jan 06 01:39:53 2025 -0500 +++ b/mercurial/revlog.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,5 +1,4 @@ # revlog.py - storage back-end for mercurial -# coding: utf8 # # Copyright 2005-2007 Olivia Mackall # diff -r b3e68fd7864b -r f19a3f1437f3 mercurial/revlogutils/rewrite.py --- a/mercurial/revlogutils/rewrite.py Mon Jan 06 01:39:53 2025 -0500 +++ b/mercurial/revlogutils/rewrite.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,5 +1,4 @@ # censor code related to censoring revision -# coding: utf8 # # Copyright 2021 Pierre-Yves David # Copyright 2015 Google, Inc diff -r b3e68fd7864b -r f19a3f1437f3 tests/flagprocessorext.py --- a/tests/flagprocessorext.py Mon Jan 06 01:39:53 2025 -0500 +++ b/tests/flagprocessorext.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,6 +1,3 @@ -# coding=UTF-8 - - import base64 import zlib diff -r b3e68fd7864b -r f19a3f1437f3 tests/test-url.py --- a/tests/test-url.py Mon Jan 06 01:39:53 2025 -0500 +++ b/tests/test-url.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,5 +1,3 @@ -# coding=utf-8 - import doctest import os diff -r b3e68fd7864b -r f19a3f1437f3 tests/testlib/ext-sidedata-2.py --- a/tests/testlib/ext-sidedata-2.py Mon Jan 06 01:39:53 2025 -0500 +++ b/tests/testlib/ext-sidedata-2.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,4 +1,3 @@ -# coding: utf8 # ext-sidedata-2.py - small extension to test (differently) the sidedata logic # # Simulates a client for a complex sidedata exchange. diff -r b3e68fd7864b -r f19a3f1437f3 tests/testlib/ext-sidedata-3.py --- a/tests/testlib/ext-sidedata-3.py Mon Jan 06 01:39:53 2025 -0500 +++ b/tests/testlib/ext-sidedata-3.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,4 +1,3 @@ -# coding: utf8 # ext-sidedata-3.py - small extension to test (differently still) the sidedata # logic # diff -r b3e68fd7864b -r f19a3f1437f3 tests/testlib/ext-sidedata-4.py --- a/tests/testlib/ext-sidedata-4.py Mon Jan 06 01:39:53 2025 -0500 +++ b/tests/testlib/ext-sidedata-4.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,4 +1,3 @@ -# coding: utf8 # ext-sidedata-4.py - small extension to test (differently still) the sidedata # logic # diff -r b3e68fd7864b -r f19a3f1437f3 tests/testlib/ext-sidedata-5.py --- a/tests/testlib/ext-sidedata-5.py Mon Jan 06 01:39:53 2025 -0500 +++ b/tests/testlib/ext-sidedata-5.py Tue Jan 07 16:46:21 2025 -0500 @@ -1,4 +1,3 @@ -# coding: utf8 # ext-sidedata-5.py - small extension to test (differently still) the sidedata # logic #