Ezio Melotti
b55d368055
Merged revisions 79558 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79558 | florent.xicluna | 2010-04-01 21:17:09 +0300 (Thu, 01 Apr 2010) | 2 lines
#7092 : Fix some -3 warnings, and fix Lib/platform.py when the path contains a double-quote.
........
2010-08-02 20:26:41 +00:00
Georg Brandl
a09a96a544
HTML-escape the plain traceback in cgitb's HTML output, to prevent
...
the traceback inadvertently or maliciously closing the comment and
injecting HTML into the error page.
2007-05-15 20:19:34 +00:00
Georg Brandl
135c3174e7
Exceptions are no longer old-style instances. Fix accordingly.
2007-04-11 19:25:11 +00:00
Jeremy Hylton
3e0055f8c6
Merge ast-branch to head
...
This change implements a new bytecode compiler, based on a
transformation of the parse tree to an abstract syntax defined in
Parser/Python.asdl.
The compiler implementation is not complete, but it is in stable
enough shape to run the entire test suite excepting two disabled
tests.
2005-10-20 19:59:25 +00:00
Georg Brandl
07c81d9074
Prevent creating a HTML link to file://?/
2005-06-26 21:57:55 +00:00
Raymond Hettinger
dbecd93b72
Replace list of constants with tuples of constants.
2005-02-06 06:57:08 +00:00
Tim Peters
182b5aca27
Whitespace normalization, via reindent.py.
2004-07-18 06:16:08 +00:00
Andrew M. Kuchling
5fcefdb326
[Patch #987052 from Thomas Guettler]
...
Don't output empty tags
Escape page header
Remove <p> before <table> (tidy complains)
2004-07-10 14:14:51 +00:00
Skip Montanaro
1c0228a519
Another nit found by Neal Norwitz using pychecker. This was caused by a
...
too-mechanical translation when converting html() to text() (simply stripped
strong() where it appeared).
2004-06-07 11:20:40 +00:00
Andrew M. Kuchling
26f6bdf4f1
[Bug #758665 ] cgitb.scanvars() fails because of an unititialized value variable. Patch from Robin Becker.
2004-06-05 19:15:34 +00:00
Andrew M. Kuchling
30633c9a64
[Bug #945063 ] Get file extension correct. (2.3 bugfix candidate)
2004-05-06 13:13:44 +00:00
Andrew M. Kuchling
b67c94318e
[Bugfix candidate] Escape traceback type and value. There are probably additional cases where cgitb.py doesn't escape as paranoidly as it should (e.g. attribute names)
2004-03-31 20:17:56 +00:00
Tim Peters
478c10554b
Whitespace normalization.
2003-06-29 05:46:54 +00:00
Skip Montanaro
364ca40c2a
SF Patch 569574 - enhancements to cgitb for plain text display
2003-06-17 12:58:31 +00:00
Guido van Rossum
0146f419b4
Fix name error, found by pychecker.
2002-12-31 01:08:35 +00:00
Guido van Rossum
3b0a3293c3
Massive changes from SF 589982 (tempfile.py rewrite, by Zack
...
Weinberg). This changes all uses of deprecated tempfile functions to
the recommended ones.
2002-08-09 16:38:32 +00:00
Ka-Ping Yee
711cad769a
Also look up variable names in __builtins__ if not found in globals.
...
Don't show hidden fields of exception values (names starting with '_').
2002-06-26 07:10:56 +00:00
Fred Drake
4f5b49fb56
Make the module docstring agree with reality: the module prvides the
...
"handler()" function, not the "handle()" function.
2001-12-19 14:27:41 +00:00
Ka-Ping Yee
fa78d0fbe4
Add "file" argument to Hook constructor.
...
By default, save sys.stdout in self.file when a Hook instance is created
(e.g. when cgitb.enable() is called).
2001-12-04 18:45:17 +00:00
Ka-Ping Yee
83205972a2
Enhancements:
...
- file URL now starts with "file://" (standard) rather than "file:"
- new optional argument 'context' to enable()
- repeated variable names don't have their values shown twice
- dotted attributes are shown; missing attributes handled reasonably
- highlight the whole logical line even if it has multiple physical lines
- use nice generator interface to tokenize
- formatting fixed so that it looks good in lynx, links, and w3m too
2001-08-21 06:53:01 +00:00
Ka-Ping Yee
6b5a48d48e
Initial check-in of cgitb.
...
A few enhancements are pending, but this should work reliably.
2001-08-18 04:04:50 +00:00