Commit graph

99014 commits

Author SHA1 Message Date
Miss Islington (bot)
bbbc3d99dc bpo-30820: Remove incorrect docs for email.contentmanager.raw_data_manager (GH-7631) (#7634)
The docs claimed that a list of EmailMessage objects could be
passed to set_content(), but this was never implemented.
(cherry picked from commit 2c071cebe6)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-06-11 12:11:52 -04:00
Ned Deily
1b5731e276
bpo-23404: Update/sync What's New files for 3.6/3.5/2.7 (GH-7622) 2018-06-11 04:33:26 -04:00
Ned Deily
4836dc9973
more pypi.python.org -> pypi.org for 3.6 (GH-7616) 2018-06-11 01:29:28 -04:00
Miss Islington (bot)
52ecb8cac4 pypi.python.org -> pypi.org (GH-7613) (GH-7615)
(cherry picked from commit 9d6d06e806)

Co-authored-by: Ned Deily <nad@python.org>
2018-06-11 01:07:49 -04:00
Miss Islington (bot)
3e121581d0 bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731) (GH-7607)
Before Python 3.6, os.path.abspath(None) used to report an AttributeError which was properly caught inside site.abs_paths, making it ignore __main__, one of sys.modules, which has __file__ and __cached__ set to None. With 3.6, os.path.abspath(None) raises TypeError instead which site.abs_path was not expecting.  This resulted in an uncaught exception if a user had PYTHONSTARTUP set and the application called site.main() which a number of third-party programs do.
(cherry picked from commit 2487f30d55)

Co-authored-by: Steve Weber <steverweber@gmail.com>
2018-06-10 21:23:41 -04:00
Miss Islington (bot)
1d4089b5d2 bpo-33812: Corrected astimezone for naive datetimes. (GH-7578) (GH-7601)
A datetime object d is aware if d.tzinfo is not None and
d.tzinfo.utcoffset(d) does  not return None. If d.tzinfo is None,
or if d.tzinfo is not None but d.tzinfo.utcoffset(d) returns None,
 d is naive.

This commit ensures that instances with non-None d.tzinfo, but
d.tzinfo.utcoffset(d) returning None are treated as naive.

In addition, C acceleration code will raise TypeError if
d.tzinfo.utcoffset(d) returns an object with the type other than
timedelta.

* Updated the documentation.

Assume that the term "naive" is defined elsewhere and remove the
not entirely correct clarification.  Thanks, Tim.
(cherry picked from commit 877b23202b)

Co-authored-by: Alexander Belopolsky <abalkin@users.noreply.github.com>
2018-06-10 18:03:31 -04:00
Miss Islington (bot)
040d4a7b58 bpo-33748: fix tests altering sys.path and sys.modules (GH-7433) (GH-7603)
(cherry picked from commit 4ab4695388)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2018-06-10 17:45:51 -04:00
Miss Islington (bot)
08a1b13392
bpo-33610: Update IDLE Code Context doc entry (GH-7597)
Users can now click on context lines.
(cherry picked from commit af4b0130d4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-06-10 13:11:20 -07:00
Miss Islington (bot)
969759e11e
bpo-33820: Fix IDLE What's New typo (GH-7594)
(cherry picked from commit 820c53ac61)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-06-10 12:34:08 -07:00
Serhiy Storchaka
fe03583380 [3.6] Fix spaces added after hyphens in news entries. (GH-7579) (GH-7584)
Seems they were added by double applying blurb.
(cherry picked from commit 98a0e466cd)
2018-06-10 14:54:07 -04:00
Miss Islington (bot)
8ecd7f6d52
bpo-33820: Update idlelib subsection of What's New 3.6 (GH-7589)
(cherry picked from commit e226eb7157)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-06-10 11:30:44 -07:00
Miss Islington (bot)
5c52f48200
Remove hyphens from phrase "picks up where it left off" (GH-7410)
(cherry picked from commit d689f97619)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-06-09 19:04:32 -07:00
Miss Islington (bot)
a5f0a8eeab
Fix typo in object.__getnewargs__() documentation (GH-7554)
(cherry picked from commit 0e0534c402)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-06-09 18:00:47 -07:00
Miss Islington (bot)
1f5569824f
bpo-33766: Document that end of file or string is a newline (GH-7383)
(cherry picked from commit 0aa17ee6a7)

Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
2018-06-09 17:12:24 -07:00
Miss Islington (bot)
07aea160ca
bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521)
If tests are re-run, use "xxx then yyy" result format (ex: "FAILURE
then SUCCESS") to show that some failing tests have been re-run.

Add also test_regrtest.test_rerun_fail() test.
(cherry picked from commit c45fc7673e)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-06-09 09:35:37 -07:00
Mariatta
4ba4ff4d91
Docs: fix some wrong words (GH-6987)
Fix typos in code comments: bdb.py and configure.ac..
(cherry picked from commit b5c246f833)

Co-authored-by: Eitan Adler <grimreaper@users.noreply.github.com>
2018-06-08 17:17:32 -07:00
Miss Islington (bot)
234b53f8b5
bpo-30805: Avoid race condition with debug logging (GH-7545)
Supersedes https://github.com/python/cpython/pull/2490
(cherry picked from commit 12f482e0ae)

Co-authored-by: Yury Selivanov <yury@magic.io>
2018-06-08 15:47:45 -07:00
Miss Islington (bot)
376c272d68
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
- bugfix and test for fragile metavar handling in argparse (see
  bpo-24089, bpo-14046, bpo-25058, bpo-11874)
- also fixes some incorrect tests that did not make 1-element tuples correctly
(cherry picked from commit 66f02aa32f)

Co-authored-by: wim glenn <wim.glenn@gmail.com>
2018-06-08 04:05:58 -07:00
Miss Islington (bot)
a0accc0f8e
bpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346)
(cherry picked from commit 9ef1b0690b)

Co-authored-by: Mayank Singhal <17mayank.singhal@gmail.com>
2018-06-08 03:22:39 -07:00
Miss Islington (bot)
88437a9b31
Update idlelib/NEWS.txt to 2018 Jun 8 am. (GH-7517)
(cherry picked from commit b1f690294d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-06-07 23:50:15 -07:00
Miss Islington (bot)
1038669769
bpo-33768: IDLE: Clicking on code context line moves it to top of editor (GH-7411)
(cherry picked from commit 041272b657)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-06-07 22:50:58 -07:00
Yury Selivanov
b0bb9a81f6
bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467) (#7514) 2018-06-07 23:42:13 -04:00
Miss Islington (bot)
94b5fabe81
bpo-33791: Update README for macOS users (GH-7471)
(cherry picked from commit ee994d7443)

Co-authored-by: atg7000 <38963069+atg7000@users.noreply.github.com>
2018-06-07 19:52:49 -07:00
Yury Selivanov
8de73d5a69
bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467) (GH-7507) 2018-06-07 21:32:43 -04:00
Miss Islington (bot)
d071ab12c8
bpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500)
(cherry picked from commit bed523ba03)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-06-07 16:34:12 -07:00
Berker Peksag
279564431e
[3.6] bpo-32392: Document env keyword argument of subprocess.run() (GH-7289)
(cherry picked from commit af1ec97a6d)

Conflicts:

	Doc/library/subprocess.rst
2018-06-07 22:22:35 +03:00
Victor Stinner
2c8d665ba8
[3.6] bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462) (GH-7483)
* bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462)

Fix "<CoroWrapper ...> was never yielded from" warning in
PyTask_PyFuture_Tests.test_error_in_call_soon() of
test_asyncio.test_tasks.

Close manually the coroutine on error.

(cherry picked from commit 9f04f0df6f)

* Hide a warning in test_asyncio test_cancel_handshake()

SslProtoHandshakeTests.test_cancel_handshake() of
test_asyncio.test_sslproto: hide a traceback about SSL handshake
failure.
2018-06-07 17:06:50 +02:00
Miss Islington (bot)
21f2553482
bpo-17909: Document that json.load can accept a binary IO (GH-7366)
(cherry picked from commit bb6366bd75)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
2018-06-07 03:21:20 -07:00
Miss Islington (bot)
97fe1b493d
bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)
Substract one because listdir() opens internally a file
descriptor to list the content of the /proc/self/fd/ directory.

Add test_support.test_fd_count().

Move also MAXFD code before msvcrt.CrtSetReportMode(), to make sure
that the report mode is always restored on failure.
(cherry picked from commit 492d6424a7)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-06-06 09:09:18 -07:00
Miss Islington (bot)
2bc1946fb0 bpo-33781: audioop: enhance rounding double as int (GH-7447) (GH-7451)
Move the floor() call into fbound() to call floor() on a double
rather than an int. The change should enhance the rounding.

Document also (int)double rounding mode.
(cherry picked from commit 45e4efba7f)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-06-06 17:18:27 +02:00
Miss Islington (bot)
08c03cca59
remove hg support from patchcheck (GH-7440)
(cherry picked from commit b8c0845fee)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-06-05 23:00:20 -07:00
INADA Naoki
d59f97c832
bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395)
(cherry picked from commit e336484847)
2018-06-06 14:18:14 +09:00
Miss Islington (bot)
f74a1244eb
bpo-33751: Fix test_file. (GH-7378)
testModeStrings and testTruncateOnWindows were depended on
a file leaked in other tests.

Also improve cleaning up after tests.
(cherry picked from commit c2745d2d05)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-06-05 10:51:02 -07:00
Serhiy Storchaka
b8baa33d93
[3.6] bpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377). (GH-7431)
(cherry picked from commit 5f48e2644d)
2018-06-05 19:53:03 +03:00
Miss Islington (bot)
194a5c0722
bpo-33752: Fix a file leak in test_dbm. (GH-7376)
With addCleanup() f.close() was executed after tearDown().
(cherry picked from commit 6592d7fe11)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-06-05 06:47:42 -07:00
Miss Islington (bot)
ae55d29fe0
bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)
Raise TypeError instead of SystemError for unsupported operations.
(cherry picked from commit e9e3976057)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-06-05 06:25:21 -07:00
Miss Islington (bot)
0da3f412bc
Enable the verbose build for extension modules with GNU make (GH-6659)
(cherry picked from commit 10f715d712)

Co-authored-by: Matthias Klose <doko42@users.noreply.github.com>
2018-06-04 10:37:04 -07:00
Miss Islington (bot)
889a1ef683
bpo-27902: Add compatibility note to Profile docs (GH-7295)
(cherry picked from commit f7745e1dcb)

Co-authored-by: Tobias Kunze <r@rixx.de>
2018-06-04 10:30:34 -07:00
Miss Islington (bot)
a7de1483c2
bpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358)
(cherry picked from commit 13f51d9eec)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-06-04 10:22:18 -07:00
Miss Islington (bot)
6a43d5f4fb
bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)
The bytes parameter uses big endian.
(cherry picked from commit b75ec08567)

Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
2018-06-04 10:18:22 -07:00
Miss Islington (bot)
4251d2a354
bpo-31849: Fix warning in pyhash.c (GH-6799)
(cherry picked from commit a8eb58546b)

Co-authored-by: A. Jesse Jiryu Davis <jesse@emptysquare.net>
2018-06-04 10:14:26 -07:00
Miss Islington (bot)
ffe29dbcd9
bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)
(cherry picked from commit b609e687a0)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-06-04 09:22:10 -07:00
Miss Islington (bot)
db22229687
bpo-33664: Scroll IDLE editor text by lines (GH-7351)
Previously, the mouse wheel and scrollbar slider moved text by a fixed
number of pixels, resulting in partial lines at the top of the editor
box. The change also applies to the shell and grep output windows,
but not to read-only text views.
(cherry picked from commit d49dbd9acc)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-06-04 09:13:43 -07:00
Ned Deily
b8f2fb5200
bpo-33764: Appveyor fixes (GH-7364) (GH-7379)
* Prevent spurious message if taking a shortcut
* Fix YAML style
* Disable largefile tests
2018-06-04 00:47:37 -04:00
Serhiy Storchaka
2e601c54d9 [3.6] bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7375)
It depended on a global variable set by other tests..
(cherry picked from commit 7cfd8c6a1b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-06-03 23:36:15 -04:00
Miss Islington (bot)
d18b13d36a bpo-33760: Fix file leaks in test_io. (GH-7361) (GH-7372)
(cherry picked from commit e36837cb71)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-06-03 23:31:51 -04:00
Miss Islington (bot)
7f1bcda9bc bpo-33750: Reset thread-local context precision in test_round(). (GH-7355) (#7356)
(cherry picked from commit e95dfc5006)

Co-authored-by: Stefan Krah <skrah@bytereef.org>
2018-06-03 19:30:12 +02:00
Miss Islington (bot)
da7f8ce21a bpo-33744: Fix test_uu. (GH-7350) (GH-7353)
Separate tests leaked files or were depended on files leaked in other tests.
(cherry picked from commit 027f95c736)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-06-03 18:22:54 +03:00
Miss Islington (bot)
db30390858
bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
`writerows()` takes an iterable.
(cherry picked from commit a801cf164b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-06-02 08:37:28 -07:00
Miss Islington (bot)
218eacad2a
Fix typo in datamodel.rst (GH-6964)
This is a simple grammatical fix correcting "...object whose `__self__` attributes is ..." to "...object whose `__self__` attribute is ...".
(cherry picked from commit 00818c8ffd)

Co-authored-by: Zach Mitchell <zmitchell@users.noreply.github.com>
2018-06-02 07:53:54 -07:00