]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-150427: Remove unused `__linecnt` attribute from `_sitebuiltins` (#150428)
authorAngelo Licastro <angelolicastro@users.noreply.github.com>
Mon, 25 May 2026 20:56:27 +0000 (16:56 -0400)
committerGitHub <noreply@github.com>
Mon, 25 May 2026 20:56:27 +0000 (22:56 +0200)
Lib/_sitebuiltins.py

index 84551e3546eb6eef796f6d39a40dea05c02df1b5..5259a36123ea276c14c96b4e41a5ad580007f65f 100644 (file)
@@ -55,7 +55,6 @@ class _Printer(object):
         if not data:
             data = self.__data
         self.__lines = data.split('\n')
-        self.__linecnt = len(self.__lines)
 
     def __repr__(self):
         self.__setup()