From 6b2a81c4dc718ef8c458b5303a938be969b4baee Mon Sep 17 00:00:00 2001 From: Bob Kline Date: Fri, 14 May 2021 09:27:32 -0400 Subject: [PATCH 1/4] Follow PEP-8 guidelines in tutorial for standard library --- Doc/tutorial/stdlib.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/tutorial/stdlib.rst b/Doc/tutorial/stdlib.rst index bad750424c8e85..95839a02453252 100644 --- a/Doc/tutorial/stdlib.rst +++ b/Doc/tutorial/stdlib.rst @@ -78,8 +78,9 @@ and an optional number of lines to be displayed:: import argparse - parser = argparse.ArgumentParser(prog = 'top', - description = 'Show top lines from each file') + parser = argparse.ArgumentParser( + prog='top', + description='Show top lines from each file') parser.add_argument('filenames', nargs='+') parser.add_argument('-l', '--lines', type=int, default=10) args = parser.parse_args() From 55a4e205137151665d3aebb67d069837bb57afc5 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Fri, 14 May 2021 18:54:49 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst diff --git a/Misc/NEWS.d/next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst b/Misc/NEWS.d/next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst new file mode 100644 index 00000000000000..96f533559dc08a --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst @@ -0,0 +1 @@ +PEP-8 violation in Python standard library corrected. \ No newline at end of file From 2a150dccd9a37dfbfdfa88c3418b9cfbc697dbfa Mon Sep 17 00:00:00 2001 From: Bob Kline Date: Fri, 14 May 2021 15:02:14 -0400 Subject: [PATCH 3/4] Correct news blurb --- .../next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst b/Misc/NEWS.d/next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst index 96f533559dc08a..8cd14435f7e82b 100644 --- a/Misc/NEWS.d/next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst +++ b/Misc/NEWS.d/next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst @@ -1 +1 @@ -PEP-8 violation in Python standard library corrected. \ No newline at end of file +PEP-8 violation in Python standard library tutorial corrected. From 786435692dd80abf00d7cc67746a8cfe7fe701e4 Mon Sep 17 00:00:00 2001 From: Bob Kline Date: Fri, 14 May 2021 15:10:03 -0400 Subject: [PATCH 4/4] Remove failing NEWS file In the original PR (25288), which this PR replaces, I asked several questions, including: 1. The checks complain that "skip issue" and skip news" labels are miissing. How do I add labels? 2. What does it mean for the checks to report that required checks have been skipped. 3. I have examined the logs from the "Docs PR - Build documentation" pre-build check. What does this error mean, and what was I supposed to have done to avoid it? ``` 2021-04-08T22:28:01.3554327Z Warning, treated as error: 2021-04-08T22:28:01.3556468Z /home/vsts/work/1/s/Doc/using/configure.rst:416:unknown option: --enable-universalsdk 2021-04-08T22:28:03.8447865Z Makefile:49: recipe for target 'build' failed 2021-04-08T22:28:03.8481903Z make: *** [build] Error 2 2021-04-08T22:28:03.8538418Z ##[error]Bash exited with code '2'. ``` All of my questions were ignored. This PR ran into some of the same failures. I tried to correct the missing "skip news" label by clicking on the "Details" link, which took me to a page where I was asked to register my GitHub account with a tool called "blurb_it" which in turn presented me with a form asking for an issue number and a PR number. There is no issue number, as my understanding is that for some PRs (such as minor documentation corrections) it is inappropriate to create a GitHub issue. Nevertheless, the form requires that the issue number field not be left blank, so I entered "none" and submitted the form again, and it was accepted. Now, however, the PR build is failing with the following error message: ``` ValueError: invalid literal for int() with base 10: 'none' ``` So I am removing the news file to eliminate this error. It would be awesome if I could get some answers to the questions above. --- .../next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Misc/NEWS.d/next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst diff --git a/Misc/NEWS.d/next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst b/Misc/NEWS.d/next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst deleted file mode 100644 index 8cd14435f7e82b..00000000000000 --- a/Misc/NEWS.d/next/Documentation/2021-05-14-18-54-48.bpo-none.tXoOW7.rst +++ /dev/null @@ -1 +0,0 @@ -PEP-8 violation in Python standard library tutorial corrected.