Commit Graph

56046 Commits

Author SHA1 Message Date
Florent Xicluna 11f0b41e9d Issue #14990: tokenize: correctly fail with SyntaxError on invalid encoding declaration. 2012-07-07 12:13:35 +02:00
Nick Coghlan 36f8dcde06 Issue 14814: Provide more informative error messages in ipaddress, and ensure that errors are caught as expected 2012-07-07 19:23:53 +10:00
Nick Coghlan 912238e3ac Issue 14814: %s implies coercion with str() - remove a lot of redundant str() calls from the ipaddress implementation 2012-07-07 13:34:50 +10:00
doko@ubuntu.com 9dc823d2e0 - Issue #15268: Search curses.h in /usr/include/ncursesw. 2012-07-07 03:06:42 +02:00
Antoine Pitrou 7d7f40c613 Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory. 2012-07-06 18:52:58 +02:00
Antoine Pitrou 9235b254dc Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory. 2012-07-06 18:48:24 +02:00
Nick Coghlan 5cf896fea8 Issue 14814: Eliminate bytes warnings from ipaddress by correctly throwing an exception early when given bytes data of the wrong length. Also removes 2.x backwards compatibility code from associated tests. 2012-07-07 01:43:31 +10:00
Nick Coghlan 3c2570caf2 Issue 14814: Better handling of cases where octet/hextet parsing fails, including ensuring that tracebacks are still clean even when calling class constructors directly 2012-07-07 01:13:55 +10:00
Richard Oudkerk 2240ac1eae Issue #15261: Stop os.stat(fd) crashing on Windows when fd not open. 2012-07-06 12:05:32 +01:00
Antoine Pitrou 74de153681 Issue #15020: The program name used to search for Python's path is now python3 under Unix, not python. 2012-07-05 20:57:33 +02:00
Antoine Pitrou 01cca5e451 Issue #15020: The program name used to search for Python's path is now "python3" under Unix, not "python". 2012-07-05 20:56:30 +02:00
Senthil Kumaran f28fbabc7f Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp 2012-07-04 19:33:45 -07:00
Senthil Kumaran f01a337950 Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp 2012-07-04 19:28:16 -07:00
Brett Cannon 53089c6e91 Issue #15210: Greatly simplify the test for supporting importlib
working without _frozen_importlib by moving to an import over a direct
access in sys.modules.
2012-07-04 14:03:40 -04:00
Mark Dickinson 3bee1f1154 Fix undefined names in __all__. 2012-07-04 11:07:06 +02:00
Raymond Hettinger 5b381a3650 Make ANSI the default output style 2012-07-03 17:55:23 -07:00
Raymond Hettinger 0712f40308 Add examples to the module docstring 2012-07-03 14:42:33 -07:00
Raymond Hettinger 1087d9c4b3 Fix spelling. 2012-07-03 14:25:16 -07:00
Raymond Hettinger 3a96161a73 Add support for ANSI escape sequences 2012-07-03 14:11:40 -07:00
Vinay Sajip ed1f7c834f Closes #14902: Fixed timezone conversion of a date/time in the past. Thanks to Yuriy Syrovetskiy for the report and Juancarlo Añez for the patch on which this fix is based. 2012-07-03 21:36:36 +01:00
Raymond Hettinger 5da6039765 Refactor to isolate HTML encoding step from the parsing step. 2012-07-03 13:13:52 -07:00
Vinay Sajip 3575f910d9 Closes #15241: Added information on venv prefixes to pyvenv section. 2012-07-03 17:26:55 +01:00
Vinay Sajip 3874e547b4 Issue #15241: Added test for venv prefixes. 2012-07-03 16:56:40 +01:00
Vinay Sajip abd344cbab Issue 15241: Improved site.py documentation relating to venvs. 2012-07-03 16:33:57 +01:00
Jesus Cea 0a0280196f NULL MERGE: Issue #1677: Unused variable warning in Non-Windows 2012-07-03 13:18:30 +02:00
Jesus Cea 035997f1a3 Issue #1677: Unused variable warning in Non-Windows 2012-07-03 13:15:03 +02:00
Raymond Hettinger ac5f8467b1 Fix keyword argument 2012-07-03 00:15:59 -07:00
Raymond Hettinger cf6eac4063 Minor cleanups 2012-07-03 00:12:27 -07:00
Raymond Hettinger ecea0fb173 Use new-style string formatting for the HTML template 2012-07-02 17:17:16 -07:00
Raymond Hettinger f57baaba49 Clean-up unused variable 2012-07-02 13:54:33 -07:00
Raymond Hettinger f2cc352afd Do HTML escaping after the tokenization step. 2012-07-02 13:29:57 -07:00
Brett Cannon 98979b85e7 Issue #15166: Re-implement imp.get_tag() using sys.implementation.
Also eliminates some C code in Python/import.c as well.

Patch by Eric Snow with verification by comparing against another
patch from Jeff Knupp.
2012-07-02 15:13:11 -04:00
Brett Cannon 8e2f5564b3 Issue #15210: If _frozen_importlib is not found in sys.modules by
importlib.__init__, then catch the KeyError raised, not ImportError.
2012-07-02 14:53:10 -04:00
Brett Cannon 1e331560ee Closes #15030: Make importlib.abc.PyPycLoader respect the new .pyc
file size header field.

Thanks to Marc Abramowitz and Ronan Lamy for helping out with various
parts of the patch.
2012-07-02 14:35:34 -04:00
Stefan Krah d57caf36bd Remove ISSUES.txt. 2012-07-01 12:24:20 +02:00
doko@ubuntu.com 15bac0f4da - Issue #15235: Allow Berkley DB versions up to 5.3 to build the dbm module. 2012-07-01 10:35:54 +02:00
Georg Brandl 487f191b79 Fix filename. 2012-07-01 10:04:35 +02:00
Georg Brandl c9d2fc390d Merge with 3.2. 2012-07-01 09:56:07 +02:00
Georg Brandl 29feb1ffca Make call of os.getppid() conditional: it is not available on Windows. 2012-07-01 09:47:54 +02:00
Georg Brandl 3aa0c9dcf3 Fix inconsistent function name in embedding howto. 2012-07-01 09:43:20 +02:00
Raymond Hettinger e4870b5117 Limit which operators get colorized 2012-07-01 00:37:05 -07:00
Raymond Hettinger 9b8ede60c1 Set title to the source filename 2012-06-30 23:19:30 -07:00
Raymond Hettinger fd490cc052 Small cleanups 2012-06-30 22:19:04 -07:00
Raymond Hettinger 410afbc5d8 Fix local variable 2012-06-30 17:10:25 -07:00
Raymond Hettinger 461fcaa6d4 Add author tag 2012-06-30 17:00:14 -07:00
Raymond Hettinger bc09cf1f35 Add syntax highlighter tool 2012-06-30 16:58:06 -07:00
doko@ubuntu.com d4ea23f200 - Issue #15194: check in the missing m4/ax_append_flag.m4 file.
Regenerate aclocalm4 and configure.
2012-07-01 01:08:20 +02:00
doko@ubuntu.com 41f9d04e06 null merge 2012-07-01 00:38:34 +02:00
doko@ubuntu.com 49a7da30aa - Issue #15194: check in the missing m4/ax_check_compile_flag.m4 file.
Regenerate aclocalm4 and configure.
2012-07-01 00:37:47 +02:00
doko@ubuntu.com cc5addd3b6 - Issue #14330: Don't derive the include and library search dirs
from GCC for native builds
2012-07-01 00:23:51 +02:00