Commit graph

5369 commits

Author SHA1 Message Date
Victor Stinner
862490a546 Untabify Modules/posixmodule.c (2)
Fix some more functions by hand
2010-05-06 00:03:44 +00:00
Victor Stinner
d6f8542307 Untabify Modules/posixmodule.c
Run Antoine Pitrou "untabify" script + manual editions (OS/2 and some
continuation lines).
2010-05-05 23:33:33 +00:00
Brett Cannon
7a4cd7e1e2 Remove extraneous whitespace. 2010-05-05 20:15:14 +00:00
Brett Cannon
a1b562943b Remove an unnecessary variable.
Found using Clang's static analyzer.
2010-05-05 20:14:27 +00:00
Antoine Pitrou
b26dc46576 Untabify Modules/_io/fileio.c 2010-05-05 16:27:30 +00:00
Antoine Pitrou
a4c2a5c9a0 Untabify Modules/_ssl.c 2010-05-05 15:53:45 +00:00
Thomas Heller
06a7e2069a On Windows, ctypes does no longer check the stack before and after
calling a foreign function.  This allows to use the unmodified libffi
library.

Remove most files from _ctypes/libffi_msvc, only two include files
stay (updated from _ctypes/libffi/...).  Other files are used in the
cross-platform _ctypes/libffi directory.
2010-05-04 18:44:42 +00:00
Brett Cannon
d0d2d31589 Fix some whitespace. 2010-05-04 01:01:00 +00:00
Brett Cannon
6d7b7be990 Remove an unneeded variable assignment.
Found using Clang's static analyzer.
2010-05-04 00:57:44 +00:00
Brett Cannon
23b581a6f4 Strip out extraneous whitespace, cast a some const char * to void * when
passed to free() and make a `char *` to a `const char *` as found by Clang's
static analyzer.
2010-05-04 00:52:41 +00:00
Brett Cannon
33e5dd8466 Fix a Py_DECREF to a Py_XDECREF.
Found using Clang's static analyzer.
2010-05-04 00:48:11 +00:00
Brett Cannon
87ab6ad4d6 Prevent a possible NULL de-reference and an unneeded variable assignment.
Found using Clang's static analyzer.
2010-05-04 00:36:00 +00:00
Brett Cannon
e894e93f4c Remove a redundant string length check and variable assignment.
Found with Clang's static analyzer.
2010-05-04 00:30:17 +00:00
Brett Cannon
7983284472 Fix two potential uninitialization errors and an unneeded assignment.
Found using Clang's static analyzer.
2010-05-03 23:57:15 +00:00
Brett Cannon
8ffe7bbb72 Remove unused variables and a variable initialization.
Found using Clang's static analyzer.
2010-05-03 23:51:28 +00:00
Brett Cannon
5d947cb324 Remove unneeded variable assignment.
Found using Clang's static analyzer.
2010-05-03 23:44:54 +00:00
Brett Cannon
8e9757e432 Remove unneeded variable mutation and initializations.
Found using Clang's static analyzer.
2010-05-03 23:43:49 +00:00
Brett Cannon
9824e7f57c Clean up whitespace and remove unneeded variable initialization as found by
Clang.
2010-05-03 23:42:40 +00:00
Brett Cannon
99ac9147cb Remove an unused variable.
Found using Clang's static analyzer.
2010-05-03 23:41:51 +00:00
Brett Cannon
949476ee58 Remove unneeded variable initialization.
Found using Clang's static analyzer.
2010-05-03 23:41:23 +00:00
Antoine Pitrou
f7fd8e4c94 Issue #7865: The close() method of :mod:io objects should not swallow
exceptions raised by the implicit flush().  Also ensure that calling
close() several times is supported.  Patch by Pascal Chambon.
2010-05-03 16:25:33 +00:00
Antoine Pitrou
951919f558 Issue #4687: Fix accuracy of garbage collection runtimes displayed with
gc.DEBUG_STATS.
2010-05-02 19:51:14 +00:00
Antoine Pitrou
f56a288b1e Issue #7834: Fix connect() of Bluetooth L2CAP sockets with recent versions
of the Linux kernel.  Patch by Yaniv Aknin.
2010-04-29 10:05:40 +00:00
Nick Coghlan
c5e4485248 Issue 8202: when using the -m command line switch, sys.argv[0] is now '-m' instead of '-c' while searching for the module to be executed 2010-04-28 14:51:08 +00:00
Antoine Pitrou
1dc6b08f9e Issue #8549: Fix compiling the _ssl extension under AIX. Patch by
Sridhar Ratnakumar.
2010-04-27 19:09:59 +00:00
Sean Reifscheider
ca2e61276e Fixing obscure syslog corner-case when sys.argv = None, syslog() would call
openlog() for every logged message.
2010-04-25 06:31:23 +00:00
Antoine Pitrou
4d3e372ff3 The do_handshake() method of SSL objects now adjusts the blocking mode of
the SSL structure if necessary (as other methods already do).
2010-04-24 19:57:01 +00:00
Sean Reifscheider
04f4347de0 Small comment documentation change to clarify "ident" selection. 2010-04-23 08:38:24 +00:00
Sean Reifscheider
f6ce3cb84e issue8451: Making syslog module use sys.argv[0] for "ident". 2010-04-23 08:31:55 +00:00
Antoine Pitrou
a5c4b5515f Issue #8108: Fix the unwrap() method of SSL objects when the socket has
a non-infinite timeout.  Also make that method friendlier with applications
wanting to continue using the socket in clear-text mode, by disabling
OpenSSL's internal readahead.  Thanks to Darryl Miles for guidance.

Issue #8108: test_ftplib's non-blocking SSL server now has proper handling
of SSL shutdowns.
2010-04-22 23:33:02 +00:00
Antoine Pitrou
c715a9ed08 Issue #8484: Load all ciphers and digest algorithms when initializing
the _ssl extension, such that verification of some SSL certificates
doesn't fail because of an "unknown algorithm".
2010-04-21 19:28:03 +00:00
Antoine Pitrou
7c587bf53d Issue #8438: Remove reference to the missing "surrogateescape" encoding
error handler from the new IO library.
2010-04-19 18:52:43 +00:00
Antoine Pitrou
0a6373c1a9 Issue #8322: Add a *ciphers* argument to SSL sockets, so as to change the
available cipher list.  Helps fix test_ssl with OpenSSL 1.0.0.
2010-04-17 17:10:38 +00:00
Benjamin Peterson
b7b7c77eb3 add space 2010-04-15 21:42:16 +00:00
Antoine Pitrou
bba8f2d10a Revert temporary commit in r79937 2010-04-10 23:32:12 +00:00
Antoine Pitrou
16e026cc94 Temporary commit of fix to issue #5380 (in order to watch buildbot response) 2010-04-10 22:43:05 +00:00
Philip Jenvey
cdd98fb463 fix PYTHONWARNINGS handling to not modify the original env value and improve
its tests
2010-04-10 20:27:15 +00:00
Antoine Pitrou
343314a11c Revert r79915 (temporary commit to check for buildbots -> the fix was successful) 2010-04-09 22:41:31 +00:00
Antoine Pitrou
9c6cd56e91 Temporarily commit fix to issue #8108, to check for buildbot response 2010-04-09 21:00:36 +00:00
Antoine Pitrou
92719c546f SSL_MODE_AUTO_RETRY has been added in OpenSSL 0.9.6. Fix compilation
with earlier versions.
2010-04-09 20:38:39 +00:00
Jeroen Ruigrok van der Werven
422c7423b8 FreeBSD is not a sysv platform, so use freebsd.S instead of sysv.S (as is
also the case in FreeBSD's port of libffi).

Reviewed by: dickinsm
2010-04-07 14:33:37 +00:00
Martin v. Löwis
16ea548f69 Issue #8314: Fix unsigned long long bug in libffi on Sparc v8. 2010-04-07 11:01:46 +00:00
Philip Jenvey
aebbaeb962 #7301: add the environment variable $PYTHONWARNINGS to supplement the -W
command line option
patch from Brian Curtin
2010-04-06 23:24:45 +00:00
Benjamin Peterson
3a1dfa21c2 remove a optimization that resulted in unexpected behavior #8929 2010-04-06 21:50:00 +00:00
Benjamin Peterson
e266d3e804 ready _sre types 2010-04-06 03:34:09 +00:00
Antoine Pitrou
f9de534c21 Issue #8321: Give access to OpenSSL version numbers from the ssl module,
using the new attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO`
and `ssl.OPENSSL_VERSION_NUMBER`.
2010-04-05 21:35:07 +00:00
Philip Jenvey
034b0acdd3 fix escape_encode to return the correct consumed size 2010-04-05 02:51:51 +00:00
Mark Dickinson
4f185228b0 A handful of whitespace fixes in Modules/_struct.c. 2010-04-04 21:19:35 +00:00
Mark Dickinson
fdaaa9c9d8 Issue #8300 (__index__ handling in struct.pack): Remove redundant check
and improve test coverage.  Thanks Meador Inge for the patch.
2010-04-04 08:43:04 +00:00
Raymond Hettinger
5f516edd77 Add count() method to collections.deque(). 2010-04-03 18:10:37 +00:00