Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8f14a0a

Browse files
committed
upgrade_pythoncapi.py skips pythoncapi_compat.h
1 parent a50e38e commit 8f14a0a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

upgrade_pythoncapi.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,10 @@ def patch(self, content):
385385
return self._patch(content)[0]
386386

387387
def patch_file(self, filename):
388+
if os.path.basename(filename) == PYTHONCAPI_COMPAT_H:
389+
self.log(f"Skip {filename}")
390+
return
391+
388392
encoding = "utf-8"
389393
errors = "surrogateescape"
390394

0 commit comments

Comments
 (0)