| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 43d82df commit 6e2711b
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -242,6 +242,8 @@ Documentation | |||
| 242 | 242 | Tools/Demos | |
| 243 | 243 | ----------- | |
| 244 | 244 | ||
| 245 | + - Issue #18439: Make patchcheck work on Windows for ACKS, NEWS. | ||
| 246 | + | ||
| 245 | 247 | - Issue #18448: Fix a typo in Tools/demo/eiffel.py. | |
| 246 | 248 | ||
| 247 | 249 | - Issue #18457: Fixed saving of formulas and complex numbers in | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -124,13 +124,13 @@ def docs_modified(file_paths): | |||
| 124 | 124 | @status("Misc/ACKS updated", modal=True) | |
| 125 | 125 | def credit_given(file_paths): | |
| 126 | 126 | """Check if Misc/ACKS has been changed.""" | |
| 127 | - return 'Misc/ACKS' in file_paths | ||
| 127 | + return os.path.join('Misc', 'ACKS') in file_paths | ||
| 128 | 128 | ||
| 129 | 129 | ||
| 130 | 130 | @status("Misc/NEWS updated", modal=True) | |
| 131 | 131 | def reported_news(file_paths): | |
| 132 | 132 | """Check if Misc/NEWS has been changed.""" | |
| 133 | - return 'Misc/NEWS' in file_paths | ||
| 133 | + return os.path.join('Misc', 'NEWS') in file_paths | ||
| 134 | 134 | ||
| 135 | 135 | @status("configure regenerated", modal=True, info=str) | |
| 136 | 136 | def regenerated_configure(file_paths): | |
@@ -153,7 +153,8 @@ def main(): | |||
| 153 | 153 | python_files = [fn for fn in file_paths if fn.endswith('.py')] | |
| 154 | 154 | c_files = [fn for fn in file_paths if fn.endswith(('.c', '.h'))] | |
| 155 | 155 | doc_files = [fn for fn in file_paths if fn.startswith('Doc')] | |
| 156 | - special_files = {'Misc/ACKS', 'Misc/NEWS'} & set(file_paths) | ||
| 156 | + misc_files = {os.path.join('Misc', 'ACKS'), os.path.join('Misc', 'NEWS')}\ | ||
| 157 | + & set(file_paths) | ||
| 157 | 158 | # PEP 8 whitespace rules enforcement. | |
| 158 | 159 | normalize_whitespace(python_files) | |
| 159 | 160 | # C rules enforcement. | |
@@ -163,9 +164,9 @@ def main(): | |||
| 163 | 164 | # Docs updated. | |
| 164 | 165 | docs_modified(doc_files) | |
| 165 | 166 | # Misc/ACKS changed. | |
| 166 | - credit_given(special_files) | ||
| 167 | + credit_given(misc_files) | ||
| 167 | 168 | # Misc/NEWS changed. | |
| 168 | - reported_news(special_files) | ||
| 169 | + reported_news(misc_files) | ||
| 169 | 170 | # Regenerated configure, if necessary. | |
| 170 | 171 | regenerated_configure(file_paths) | |
| 171 | 172 | # Regenerated pyconfig.h.in, if necessary. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments