[Python-checkins] Remove `NoneType` redefinition from `clinic.py` (#100551)

kumaraditya303 webhook-mailer at python.org
Tue Dec 27 11:11:48 EST 2022


https://github.com/python/cpython/commit/b0ea28913e3bf684ef847a71afcdfa8224bab63d
commit: b0ea28913e3bf684ef847a71afcdfa8224bab63d
branch: main
author: Nikita Sobolev <mail at sobolevn.me>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2022-12-27T21:41:39+05:30
summary:

Remove `NoneType` redefinition from `clinic.py` (#100551)

files:
M Tools/clinic/clinic.py

diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index fdf8041e14bb..2fb1902a5b54 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -27,7 +27,6 @@
 import types
 
 from types import *
-NoneType = type(None)
 
 # TODO:
 #
@@ -42,7 +41,6 @@
 
 version = '1'
 
-NoneType = type(None)
 NO_VARARG = "PY_SSIZE_T_MAX"
 CLINIC_PREFIX = "__clinic_"
 CLINIC_PREFIXED_ARGS = {"args"}



More information about the Python-checkins mailing list