https://github.com/python/cpython/commit/c549837a53d62ca64a6436194611728df346126f
commit: c549837a53d62ca64a6436194611728df346126f
branch: main
author: Angelo Licastro <[email protected]>
committer: picnixz <[email protected]>
date: 2026-05-25T22:56:27+02:00
summary:

gh-150427: Remove unused `__linecnt` attribute from `_sitebuiltins` (#150428)

files:
M Lib/_sitebuiltins.py

diff --git a/Lib/_sitebuiltins.py b/Lib/_sitebuiltins.py
index 84551e3546eb6e..5259a36123ea27 100644
--- a/Lib/_sitebuiltins.py
+++ b/Lib/_sitebuiltins.py
@@ -55,7 +55,6 @@ def __setup(self):
         if not data:
             data = self.__data
         self.__lines = data.split('\n')
-        self.__linecnt = len(self.__lines)
 
     def __repr__(self):
         self.__setup()

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to