Show More
@@ -1,2 +1,3 b'' | |||
|
1 | 1 | IPython debugger (IPdb) now supports the number of context lines for the |
|
2 | 2 | ``where`` (and ``w``) commands. The `context` keyword is also available in various APIs. |
|
3 | See PR #9097 |
@@ -21,11 +21,9 b' INCOMPAT_MARK = ".. DO NOT EDIT THIS LINE BEFORE RELEASE. INCOMPAT INSERTION POI' | |||
|
21 | 21 | |
|
22 | 22 | # 1. Collect the whatsnew snippet files --------------------------------------- |
|
23 | 23 | |
|
24 | files = set() | |
|
25 | for f in glob(pjoin(pr_dir, '*.rst')): | |
|
26 | files.add(f) | |
|
24 | files = set(glob(pjoin(pr_dir, '*.rst'))) | |
|
27 | 25 | # Ignore explanatory and example files |
|
28 |
files.difference_update({pjoin(pr_dir, f) for f in { |
|
|
26 | files.difference_update({pjoin(pr_dir, f) for f in { | |
|
29 | 27 | 'incompat-switching-to-perl.rst', |
|
30 | 28 | 'antigravity-feature.rst'} |
|
31 | 29 | }) |
@@ -42,7 +40,7 b' for path in files:' | |||
|
42 | 40 | try: |
|
43 | 41 | content = f.read().rstrip() |
|
44 | 42 | except Exception as e: |
|
45 | raise Exception('Error reading "{}"'.format(f)) | |
|
43 | raise Exception('Error reading "{}"'.format(f)) from e | |
|
46 | 44 | |
|
47 | 45 | if basename(path).startswith('incompat-'): |
|
48 | 46 | incompats.append(content) |
General Comments 0
You need to be logged in to leave comments.
Login now