Commit Graph

98671 Commits

Author SHA1 Message Date
Miss Islington (bot) 92a2c07b71 Skip test_socket.test_sha256() on linux < 4.5 (GH-4643) (#4645)
bpo-31705.
(cherry picked from commit 86afc1f2a7)
2017-11-30 14:43:43 +01:00
Victor Stinner dedcbee04c
[3.6] bpo-30923, bpo-31279: Fix GCC warnings (#4620)
* bpo-30923: Silence fall-through warnings in libexpat build. (#3205)

(cherry picked from commit 9e1e6f528f)

* bpo-31279: Silence -Wstringop-overflow warning. (#3207)

(cherry picked from commit dce6502059)
2017-11-30 00:00:35 +01:00
Victor Stinner 06be9daf6f
bpo-32030: Fix test_sys.test_getallocatedblocks() (#4637)
Skip the test if PYTHONMALLOC environment variable is set.
2017-11-29 23:51:41 +01:00
Barry Warsaw 23cc8c0f9e
[3.6] bpo-32107 - Backport bitmask check fix (GH-4576) (#4591)
Remove a flakey test and rewrite another one for readability.
2017-11-29 10:35:02 -05:00
Miss Islington (bot) b0df786258 bpo-32139: test_strftime does not anymore modify the locale (GH-4569) (#4635)
(cherry picked from commit cc55e78aca)
2017-11-29 16:18:22 +01:00
Miss Islington (bot) 957aef7c41 bpo-32164: Delete unused file idlelib/tabbedpages.py (GH-4628) (#4631)
(cherry picked from commit 041efd292e)
2017-11-29 01:07:21 -05:00
Miss Islington (bot) a8de696ddd bpo-30781: Remove unused imports in idlelib.configdialog. (GH-4627) (#4630)
(cherry picked from commit e8f7c78a86)
2017-11-28 22:46:32 -05:00
Miss Islington (bot) 38ecf57306 bpo-32100: Delete unneeded import in idlelib.pathbrowser. (GH-4626) (#4629)
(cherry picked from commit fd6f8c56b9)
2017-11-28 22:15:06 -05:00
Miss Islington (bot) 230ffeae0a bpo-32110: codecs.StreamReader.read(n) now returns not more than n (GH-4499) (#4622)
characters/bytes for non-negative n.  This makes it compatible with
read() methods of other file-like objects.
(cherry picked from commit 219c2de5ad)
2017-11-29 02:06:53 +02:00
Victor Stinner 6979fcdc91
bpo-32155: Bugfixes found by flake8 F841 warnings (#4619)
* turtledemo: wait until macOS osascript command completes to not
  create a zombie process
* Tools/scripts/treesync.py: declare 'default_answer' and
  'create_files' as globals to modify them with the command line
  arguments. Previously, -y, -n, -f and -a options had no effect.

flake8 warning: "F841 local variable 'p' is assigned to but never
used".
2017-11-28 23:04:12 +01:00
Miss Islington (bot) 5f6d2bb8cf Use raw strings in the re module examples. (GH-4616) (#4617)
(cherry picked from commit c615be5166)
2017-11-28 23:21:09 +02:00
Miss Islington (bot) cb79c22039 bpo-31440: Changed default module search path for windows (#4613)
(cherry picked from commit 08d2b86a10)
2017-11-28 18:18:26 +01:00
Miss Islington (bot) 4237939805 asyncio: Fix BaseSelectorEventLoopTests (GH-4595) (#4599)
Currently, two tests fail with PYTHONASYNCIODEBUG=1 (or using -X
dev).
(cherry picked from commit 92f9339a58)
2017-11-28 10:32:53 +01:00
Miss Islington (bot) f54e405200 asyncio: Remove unused Future._tb_logger attribute (GH-4596) (#4598)
It was only used on Python 3.3, now only Future._log_traceback is
used.
(cherry picked from commit c16bacec3c)
2017-11-28 10:32:28 +01:00
Victor Stinner d5c71b0c98
pythoninfo: add Py_DEBUG (#4198) (#4580)
(cherry picked from commit afd055a59f)
2017-11-27 10:44:53 +01:00
Miss Islington (bot) 8a957534f5 bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)
(cherry picked from commit c172fc5031)
2017-11-27 04:22:50 +03:00
Miss Islington (bot) cceb0f8d7b bpo-29879: Update typing documentation. (GH-4573) (GH-4574)
- Add "version added: 3.5.2" note where it was missing.
- Remove the mention that Reversible is new in 3.5.2
(cherry picked from commit 0cd2e81bea)
2017-11-26 14:27:44 -08:00
Miss Islington (bot) 04af8ace86 bpo-32059: setup.py now also searches the sysroot paths (GH-4452) (#4562)
detect_modules() in setup.py now also searches the sysroot paths when
cross-compiling.
(cherry picked from commit 77f5139954)
2017-11-25 17:52:20 +01:00
Miss Islington (bot) 6bce8ace76 [Doc] Update opcode for var-positional arguments (GH-4446) (#4457)
`BUILD_MAP_UNPACK_WITH_CALL` was duplicated as the opcode for both var-positional and var-keyword arguments. The opcode for the former was updated as `BUILD_TUPLE_UNPACK_WITH_CALL`.
(cherry picked from commit 0c71653cb8)
2017-11-25 17:57:41 +02:00
Miss Islington (bot) db897b1961 Improve Scheduler Objects documentation. (GH-4556) (GH-4557)
Mention that the lower the priority number, the higher priority it represents.
(cherry picked from commit 9d5ec808de)
2017-11-24 21:48:26 -08:00
Miss Islington (bot) 3e60747025 bpo-30004: Fix the code example of using group in Regex Howto Docs (GH-4443) (GH-4554)
The provided code example was supposed to find repeated words, however it returned false results.
(cherry picked from commit 610e5afdcb)
2017-11-24 21:03:04 -08:00
Miss Islington (bot) dde38b9cb3 bpo-32128: Skip test_nntplib.test_article_head_body() (GH-4552) (#4553)
The NNTP server currently has troubles with SSL, whereas we don't
have the control on this server. This test blocks all CIs, so disable
it until a fix can be found.
(cherry picked from commit 706cb3162e)
2017-11-25 03:02:47 +01:00
Miss Islington (bot) 05ee12153f Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414) (GH-4549)
(cherry picked from commit f8802d80b3)
2017-11-24 16:07:37 -08:00
Miss Islington (bot) 7b909a93bf Improve the String tutorial docs (GH-4541) (GH-4545)
The paragraph that contains example of string literal concatenation was placed
after the section about concatenation using the '+' sign.
Moved the paragraph to the appropriate section.
(cherry picked from commit 78a5722ae9)
2017-11-24 09:35:08 -08:00
Berker Peksag 412f00b839
[3.6] bpo-12239: Make GetProperty() return None for VT_EMPTY (GH-4539)
The previous behavior was to raise an exception

    NotImplementedError: result of type 0

when the value of the property is VT_EMPTY.

(cherry picked from commit 19fb134185)
2017-11-24 19:04:40 +03:00
Miss Islington (bot) bfa89b21e1 bpo-12382: Make OpenDatabase() raise better exception messages (GH-4528)
Previously, 'msilib.OpenDatabase()' function raised a
cryptical exception message when it couldn't open or
create an MSI file. For example:

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    _msi.MSIError: unknown error 6e

(cherry picked from commit 4864a619dc)
2017-11-24 13:31:21 +03:00
Miss Islington (bot) 90abbee7aa Extending Python Doc minor updates (GH-4518) (GH-4535)
Move footnote markers to be closer to the related terminology:
before the end of the sentence, instead of after.
(cherry picked from commit cdfe910e74)
2017-11-24 00:55:23 -08:00
Miss Islington (bot) ff847d1ac7 bpo-31325: Fix usage of namedtuple in RobotFileParser.parse() (GH-4529) (#4533)
(cherry picked from commit 3df02dbc8e)
2017-11-23 15:57:58 -08:00
Berker Peksag a645b23ffc
bpo-30456: Clarify example for duplicates in second argument of isinstance (GH-1699)
(cherry picked from commit 26248ef58d)
2017-11-23 23:27:25 +03:00
Victor Stinner 70b2f87971
[3.6] bpo-31324: Optimize support._match_test() (#4523)
* bpo-31324: Optimize support._match_test() (#4421)

* Rename support._match_test() to support.match_test(): make it
  public
* Remove support.match_tests global variable. It is replaced with a
  new support.set_match_tests() function, so match_test() doesn't
  have to check each time if patterns were modified.
* Rewrite match_test(): use different code paths depending on the
  kind of patterns for best performances.

Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 803ddd8ce2)

* bpo-31324: Fix test.support.set_match_tests(None) (#4505)

(cherry picked from commit bb11c3c967)
2017-11-23 17:42:04 +01:00
Berker Peksag 4b3042900e
bpo-1102: View.Fetch() now returns None when it's exhausted (GH-4459)
(cherry picked from commit bdb8315c21)
2017-11-23 17:33:12 +03:00
Terry Jan Reedy ae3c5c7b9e
[3.6] bpo-32100: IDLE: Fix pathbrowser errors; improve tests. (GH-4484) (#4512)
Patch mostly by Cheryl Sabella.
(cherry picked from commit 20d48a44a5)
2017-11-22 20:05:35 -05:00
Miss Islington (bot) d7ed48c2b8 bpo-32105: add asyncio.BaseEventLoop.connect_accepted_socket versionadded to documentation. (GH-4491) (#4493)
(cherry picked from commit 431665bf19)
2017-11-21 11:16:40 -05:00
Miss Islington (bot) 32b003aca3 Add comment and improve variable name in roundrobin() (GH-4486) (#4487)
(cherry picked from commit 337cbbace0)
2017-11-21 00:29:34 -08:00
Miss Islington (bot) 60a376cf00 bpo-32050: Fix -x option documentation (GH-4475) (#4477)
The line number in correct when using the -x option: Py_Main() uses
ungetc() to not skip the first newline character.
(cherry picked from commit c5a2071586)
2017-11-20 08:16:08 -08:00
Miss Islington (bot) b071a5e838 bpo-30904: Removed duplicated Host: header. (GH-4465) (#4468)
(cherry picked from commit e96ba183c4)
2017-11-19 19:16:17 +00:00
Miss Islington (bot) 65dffe58dd bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812) (GH-4466)
TimedRotatingFileHandler.getFilesToDelete() now sorts only when needed.
(cherry picked from commit afad147b59)
2017-11-19 18:43:49 +00:00
Miss Islington (bot) 80baec58f5 Remove outdated .pyo reference from msilib docs (GH-4461)
Since f299abdafa
the remove_pyc() method no longer tries to
remove .pyo files.
(cherry picked from commit b56becb373)
2017-11-19 13:11:48 +03:00
Miss Islington (bot) 2f1ccf5e9c Document parameters of BaseServer.finish_request() (GH-4445)
(cherry picked from commit 7750bded92)
2017-11-19 10:41:19 +03:00
native-api c696119903 bpo-31691: Specify where to find installer build instructions for Windows (#4427) 2017-11-16 16:50:48 -08:00
Miss Islington (bot) 0a6158ca39 bpo-31691: Specify where to find build instructions for the Windows installer (GH-4426) (#4431)
(cherry picked from commit fd0fa67464)
2017-11-16 16:49:36 -08:00
Miss Islington (bot) 6cc476ace1 Fix typo in atexit documentation. (GH-4419) (GH-4425)
`kargs` -> `kwargs`
(cherry picked from commit d505a29a15)
2017-11-16 09:11:41 -08:00
Victor Stinner 33217d2213
bpo-31701: faulthandler: ignore MSC and COM Windows exception (#3929) (#4416)
(cherry picked from commit 6e3d6b5dc2)
2017-11-16 03:53:45 -08:00
Miss Islington (bot) f35076a002 bpo-32034: Make IncompleteReadError & LimitOverrunError pickleable GH-4409 (#4411)
(cherry picked from commit 43605e6bfa)
2017-11-15 19:28:25 -05:00
Miss Islington (bot) d15bb5fcad bpo-32011: Revert "Issue GH-15480: Remove the deprecated and unused TYPE_INT64 code from marshal." (GH-4381) (#4405)
Simplify the reverted code.

This reverts commit e9bbe8b87b.
(cherry picked from commit 00987f6230)
2017-11-15 18:05:58 +02:00
Serhiy Storchaka 3864248866
[3.6] bpo-31949: Fixed several issues in printing tracebacks (PyTraceBack_Print()). (GH-4289) (#4406)
* Setting sys.tracebacklimit to 0 or less now suppresses printing tracebacks.
* Setting sys.tracebacklimit to None now causes using the default limit.
* Setting sys.tracebacklimit to an integer larger than LONG_MAX now means using
  the limit LONG_MAX rather than the default limit.
* Fixed integer overflows in the case of more than 2**31 traceback items on
  Windows.
* Fixed output errors handling..
(cherry picked from commit edad8eebee)
2017-11-15 18:04:46 +02:00
Miss Islington (bot) eb38367f20 bpo-32032: Test both implementations of module-level pickle API. (GH-4401) (#4403)
(cherry picked from commit 6545256df9)
2017-11-15 14:32:04 +02:00
Jesse-Bakker 42336def77 bpo-31948: Fix broken links in msilib docs (GH-4397). (GH-4398)
(cherry picked from commit 3bda02222a)
2017-11-14 16:23:35 -08:00
Miss Islington (bot) 14c1fe682f bpo-15606: Improve the re.VERBOSE documentation. (GH-4366) (#4394)
(cherry picked from commit b0b44b4b33)
2017-11-14 17:38:50 +02:00
Andrew Svetlov cc0961c517
[3.6] bpo-32015: Asyncio looping during simultaneously socket read/write an… (GH-4386) (#4393)
* bpo-32015: Asyncio cycling during simultaneously socket read/write and reconnection

* Tests fix

* Tests fix

* News add

* Add new unit tests.
(cherry picked from commit e1d62e0b7c)
2017-11-14 12:14:51 +02:00