Commit Graph

577 Commits

Author SHA1 Message Date
Serhiy Storchaka
40ce22edb5 Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.
Now pindent.py works with a "with" statement.  pindent.py no longer produces
improper indentation.  pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line.  Added
regression tests for pindent.py.  Modernized pindent.py.
2013-01-11 12:10:57 +02:00
Serhiy Storchaka
6840a54ad4 Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.
Now pindent.py works with a "with" statement.  pindent.py no longer produces
improper indentation.  pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line.  Added
regression tests for pindent.py.  Modernized pindent.py.
2013-01-11 12:04:23 +02:00
Andrew Svetlov
8b33dd8e54 Use OESeeror instead of os.error (#16720)
Patch by Serhiy Storchaka.
2012-12-24 19:58:48 +02:00
Andrew Svetlov
2606a6f197 Issue #16719: Get rid of WindowsError. Use OSError instead
Patch by Serhiy Storchaka.
2012-12-19 14:33:35 +02:00
Andrew Svetlov
a191959849 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:27:16 +02:00
Andrew Svetlov
5b89840d9c Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:26:36 +02:00
Andrew Svetlov
737fb89dd1 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:14:22 +02:00
Nick Coghlan
8155f8e5d4 Issue #5765: Merge from 3.3 2012-11-05 00:19:49 +10:00
Nick Coghlan
10d6ddeef1 Issue #5765: Also check the compiler when finding the recursion limit 2012-11-05 00:19:18 +10:00
Ezio Melotti
ccc9e617f5 #16245: add a script to generate the html.entities.html5 dict. 2012-10-23 15:46:33 +02:00
Benjamin Peterson
b29614e047 compare singletons by identity not equality (closes #16712)
Patch from Serhiy Storchaka.
2012-10-09 11:16:03 -04:00
Victor Stinner
a90f311d05 Cleanup findnocoding.py and pysource.py scripts (with infile/infile.close) 2012-08-02 00:05:41 +02:00
Victor Stinner
98516a6930 Fix findnocoding.p and pysource.py scripts
I suppose that these scripts didn't work since Python 3.0.
2012-08-01 20:12:51 +02:00
Raymond Hettinger
d3f63d3661 Simplify the LaTeX section (only three escapes are needed for alltt) 2012-07-23 00:24:24 -05:00
Raymond Hettinger
c4ac789be7 Fix-up latex styling 2012-07-14 17:58:29 -07:00
Raymond Hettinger
fb20a1a924 Fix builtin test and simplify the classified text tuple. 2012-07-13 11:52:45 -07:00
Raymond Hettinger
7d39055f7f Add simple LaTeX markup 2012-07-09 23:52:08 -07:00
Raymond Hettinger
848245a078 Add verbose option for diagnostics 2012-07-09 01:17:22 -07:00
Raymond Hettinger
42a5f4a3f2 Minor algorithmic tweaks, better factoring, improved docstrings and variable names 2012-07-08 15:42:54 -07: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
Raymond Hettinger
5da6039765 Refactor to isolate HTML encoding step from the parsing step. 2012-07-03 13:13:52 -07:00