comparison mercurial/revlog.py @ 52654: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 e52dc683bf6b
comparison
equal deleted inserted replaced
52653:b3e68fd7864b 52654:f19a3f1437f3
1 # revlog.py - storage back-end for mercurial 1 # revlog.py - storage back-end for mercurial
2 # coding: utf8
3 # 2 #
4 # Copyright 2005-2007 Olivia Mackall <olivia@selenic.com> 3 # Copyright 2005-2007 Olivia Mackall <olivia@selenic.com>
5 # 4 #
6 # This software may be used and distributed according to the terms of the 5 # This software may be used and distributed according to the terms of the
7 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.