Project

General

Profile

# Date Author Comment
11970 01/20/2014 11:33 AM Aaron Marcuse-Kubitza

moved everything into /trunk/ to create the standard svn layout, for use with tools that require this (eg. git-svn). IMPORTANT: do NOT do an `svn up`. instead, re-use your working copy's existing files with `svn switch` (http://svnbook.red-bean.com/en/1.6/svn.ref.svn.c.switch.html).

6671 12/06/2012 11:10 PM Aaron Marcuse-Kubitza

exc.py: e_msg(): Emit a warning instead of an AssertionError if e.args0 isn't a string, to assist in debugging malformed exceptions

4491 09/06/2012 08:30 PM Aaron Marcuse-Kubitza

Replaced str() with strings.ustr() (or equivalent) everywhere needed, to avoid future UnicodeEncodeErrors

4112 08/20/2012 06:13 PM Aaron Marcuse-Kubitza

exc.py: add_msg(): Fixed bug where needed to convert the Unicode string back into a raw string because Python's top-level exception handler doesn't support Unicode strings as exception messages

3709 08/01/2012 02:23 AM Aaron Marcuse-Kubitza

exc.py: e_msg(): Fixed bug where exceptions with nothing in e.args (such as StopIteration) caused a failed assertion. Fixed bug where exceptions with multiple values in e.args (such as certain IOErrors) caused a failed assertion.

3659 07/27/2012 09:11 PM Aaron Marcuse-Kubitza

exc.py: reraise(): Take optional exception argument so it can be invoked in the same way as raise_(). Interestingly, this missing parameter does not produce the usual "...() takes no arguments (1 given)" error when the function is called inside an except block.

3658 07/27/2012 09:04 PM Aaron Marcuse-Kubitza

exc.py: Added reraise()

3656 07/27/2012 08:50 PM Aaron Marcuse-Kubitza

exc.py: get_e_tracebacks_str(): Use the current system traceback if the exception doesn't contain its own traceback(s)

3606 07/25/2012 09:06 PM Aaron Marcuse-Kubitza

exc.py: e_msg(): Added assertions to check that e.args is compatible with this function

3605 07/25/2012 08:59 PM Aaron Marcuse-Kubitza

exc.py: Use new e_str() where its definition was used

3604 07/25/2012 08:54 PM Aaron Marcuse-Kubitza

exc.py: Use new Unicode-safe e_msg() instead of strings.ustr() on exceptions

3603 07/25/2012 08:47 PM Aaron Marcuse-Kubitza

exc.py: e_msg(): Run strings.ustr() on the returned string so it will be appendable to other Unicode strings

3602 07/25/2012 08:43 PM Aaron Marcuse-Kubitza

exc.py: Added e_msg(), e_str() (from SQL py_functions._date())

2883 06/15/2012 12:38 AM Aaron Marcuse-Kubitza

Wrap sys.stderr.write() calls in strings.to_raw_str() to avoid UnicodeEncodeErrors when stderr is to a file and the default encoding is ASCII

2879 06/14/2012 11:35 PM Aaron Marcuse-Kubitza

exc.py: str_(): Fixed bug where UnicodeEncodeError would be raised when msg contains non-ASCII chars, by wrapping e.args0 in strings.ustr()

2878 06/14/2012 11:23 PM Aaron Marcuse-Kubitza

exc.py: print_ex(): Wrap msg in strings.to_unicode() to try to avoid UnicodeEncodeError when msg contains non-ASCII chars

2756 06/11/2012 11:10 PM Aaron Marcuse-Kubitza

exc.py: ExceptionWithCause: Store the cause in an instance variable for later use

2372 05/23/2012 05:56 PM Aaron Marcuse-Kubitza

exc.py: str_(): Avoid traceback exception-formatting functions when possible because they escape non-ASCII characters

2342 05/22/2012 10:00 PM Aaron Marcuse-Kubitza

exc.py: add_msg(): Fixed bug where msg needed to be converted to a unicode object before appending it to another unicode object

2308 05/22/2012 04:41 PM Aaron Marcuse-Kubitza

exc.py: str_(): Added first_line_only param to return just the first line

2246 05/21/2012 04:11 PM Aaron Marcuse-Kubitza

exc.py: Support exception messages containing non-ASCII characters

2144 05/13/2012 07:26 AM Aaron Marcuse-Kubitza

exc.py: ExceptionWithCause: Added cause_newline option to put the cause on its own line instead of on the message line

2045 05/03/2012 04:51 PM Aaron Marcuse-Kubitza

exc.py: print_ex(): Added detail option to turn off traceback

1938 04/21/2012 09:28 PM Aaron Marcuse-Kubitza

exc.py: print_ex(): Added plain option to leave out traceback

1648 03/27/2012 05:40 PM Aaron Marcuse-Kubitza

profiling.py ItersProfiler, exc.py ExPercentTracker: Only output fraction of rows with errors if self.iter_ct > 0, to avoid divide-by-zero error

1636 03/26/2012 10:53 PM Aaron Marcuse-Kubitza

exc.py: str_(): Strip trailing whitespace. print_ex(): Since str_() now strips trailing whitespace, strings.ensure_newl() is no longer necessary.

1618 03/24/2012 10:30 PM Aaron Marcuse-Kubitza

exc.py: ExPercentTracker: When diplaying fraction of iters that had errors, don't duplicate the iter_text ("row", etc.) in the numerator

1616 03/24/2012 10:27 PM Aaron Marcuse-Kubitza

exc.py: ExPercentTracker: Track iter_nums of Exceptions as well, to distinguish how many distinct iters had errors

1610 03/24/2012 08:54 PM Aaron Marcuse-Kubitza

exc.py: ExceptionWithCause: Prepend msg to cause's msg separated by ': ' instead of '\ncause: '

1576 03/23/2012 04:27 PM Aaron Marcuse-Kubitza

exc.py: Changed to store multiple tracebacks in an exception, in case an exception is caught and re-raised inside an ExceptionWithCause wrapper. This preserves more of the traceback in this situation, because you get the ExceptionWithCause's traceback as well.

1371 03/12/2012 03:28 PM Aaron Marcuse-Kubitza

exc.py: Fixed bug in traceback-saving mechanism that didn't deal with nested Exceptions (such as Exceptions with causes in ExceptionWithCause). Renamed add_exc_info() to add_traceback() since we really only need to store the traceback.

1368 03/12/2012 12:23 PM Aaron Marcuse-Kubitza

exc.py: str_(): Add the traceback at the end of the exception string. Added add_exc_info() and get_exc_info() for providing traceback info for str_().

989 02/14/2012 02:36 PM Aaron Marcuse-Kubitza

Moved value to string conversion functions infrom util.py to new module format.py

988 02/14/2012 02:32 PM Aaron Marcuse-Kubitza

exc.py, profiling.py: Use util.int2str() to print # iters with thousands separators

985 02/14/2012 02:24 PM Aaron Marcuse-Kubitza

exc.py: Generalize ExTracker to not just print the # of errors at exit. Instead, provide an exit() method that the ExTracker creator can call at exit to set the exit status to the # of errors. This fixes the Python bug where a benign error message was printed if SystemExit was raised in an atexit function.

983 02/14/2012 02:13 PM Aaron Marcuse-Kubitza

exc.py: ExPercentTracker: Added ability to set custom iter_text, similar to ItersProfiler

977 02/14/2012 12:47 PM Aaron Marcuse-Kubitza

exc.py: Added ExPercentTracker to track errors as % of iterations

975 02/14/2012 12:07 PM Aaron Marcuse-Kubitza
974 02/14/2012 12:02 PM Aaron Marcuse-Kubitza

exc.py: print_ex(): Declare emph param as a keywork param instead of popping it from **format

973 02/14/2012 11:54 AM Aaron Marcuse-Kubitza

exc.py: print_ex(): Declare emph param as a keywork param instead of popping it from **format

826 02/04/2012 02:17 PM Aaron Marcuse-Kubitza

exc.py: Print exceptions with the first line highlighted in red

788 01/31/2012 07:37 PM Aaron Marcuse-Kubitza

exc.py: Added str_() to convert an Exception to a string. Use str_() in print_ex().

445 01/10/2012 03:09 PM Aaron Marcuse-Kubitza

exc.py: Added raise_() wrapper for raise statement

433 01/10/2012 12:38 PM Aaron Marcuse-Kubitza

exc.py: Added ExTracker to track printed (suppressed) Exceptions and exit with nonzero status if any were encountered

366 01/04/2012 11:32 AM Aaron Marcuse-Kubitza

exc.py: Print ! before error messages so they can be found and counted more easily in log files

343 01/03/2012 01:13 PM Aaron Marcuse-Kubitza

exc.py: Added print_ex()

300 12/28/2011 09:28 AM Aaron Marcuse-Kubitza

Renamed ex.py to exc.py

286 12/23/2011 01:56 PM Aaron Marcuse-Kubitza

ex.py: repl_msg(): take replacements as keyword args

279 12/22/2011 08:22 PM Aaron Marcuse-Kubitza

ex.py: Added repl_msg() to format a message with the % operator

268 12/22/2011 06:39 PM Aaron Marcuse-Kubitza

Moved everything in scripts to root. inputs_Makefile: Don't run "all" when installing.

46 11/29/2011 01:02 PM Aaron Marcuse-Kubitza

Renamed modules to remove _util

42 11/29/2011 12:31 PM Aaron Marcuse-Kubitza

Moved Python modules to shared lib folder

13 11/17/2011 03:31 PM Aaron Marcuse-Kubitza

Initial version of xml2db. Doesn't yet handle all duplicate rows correctly.

11 11/17/2011 10:29 AM Aaron Marcuse-Kubitza

Added BIEN 3 scripts