Mercurial > public > mercurial-scm > hg-stable
diff mercurial/interfaces/repository.py @ 52679:f19a3f1437f3
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/
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 07 Jan 2025 16:46:21 -0500 |
parents | 4cb75772818d |
children | 0f2268783c11 |
line wrap: on
line diff
--- 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 <gregory.szorc@gmail.com> #