llvm-project/lldb/examples
Zachary Turner c07138f6a0 Python 3 - modernize exception catching syntax.
Old-style syntax:  `except Exception, e:`
New-style syntax:  `except Exception as e:`

These two statements are identical, except that the former has
been deprecated for may versions, and was removed in Python 3.

This converts everything to use the new syntax (which also works
in Python 2).  I had to convert unittest2 as well.  What we really
need to do is just delete unittest2, and use unittest instead since
it is a standard module that ships with every Python distribution.
But this is the path of least resistance for now, although at
some point we will really need to do it.

llvm-svn: 251968
2015-11-03 19:49:05 +00:00
..
customization Warn about an example script being obsoleted by new native features and just an example 2012-03-16 01:25:01 +00:00
darwin/heap_find Fix typos. 2015-07-22 00:16:02 +00:00
functions Added the ability options to: 2013-06-14 00:30:23 +00:00
interposing/darwin/fd_interposing
lookup Remove unneeded include. 2013-06-13 23:56:47 +00:00
plugins/commands Replace printf with result.Printf, so that the plugin shows its output with any configuration of the LLDB I/O streams (esp. useful in graphic environments such as Xcode) 2012-10-30 18:01:15 +00:00
python Fix typos. 2015-09-22 05:07:56 +00:00
scripting
summaries Py3'ify some of the examples that get run at startup. 2015-10-19 17:35:02 +00:00
synthetic Python 3 - modernize exception catching syntax. 2015-11-03 19:49:05 +00:00
test Modified .lldb-loggings now to direct the lldb log files to the same session directory which also houses the test logs. 2012-08-22 20:25:33 +00:00