- Fixed problem installing into virtualenv paths.
- Fixed problem when running in container which reports a terminal width of 0
- Fixed problem installing into virtualenv paths.
- Fixed problem installing into virtualenv paths.
- Fixed problem installing into paths with
\
in them.
- Added
ExceptionWriter.write_link
- Fixed line number discrepancies in example image, added example image for
mono()
mode. - Autogenerated
configure()
call now has each entry commented out. - Added environment variable
PYTHON_PRETTY_ERRORS_ISATTY_ONLY
. If set to non-zero thenpretty_errors
will check if it is outputing to an interactive terminal, and only activate if it is (so logging to file will retain the standard Python exception formatting). - Added
__version__
- Now outputs
filename
andfilename2
attributes of exceptions (e.g. inFileNotFoundError
) - Added
exception_file_color
config option to color them.
- Suppressed exceptions no longer displayed (i.e. respects
suppress_context
flag) - Added
show_suppressed
config option to override this behaviour.
- Added support for when exceptions are thrown within exceptions.
- Added
inner_exception_message
andinner_exception_separator
config options.
- Really fix bug when used in interactive interpreter.
- Fix bug when used in interactive interpreter.
- No, really, fix the README URLs
- Fix README image URLs
- Fix bug when reporting SyntaxError in interactive interpreter.
- Minor fixes
- Added
replace_stderr
function to allow for situation wherepretty_errors
cannot gain access tosys.excepthook
. - Moved installer script entirely into
__main__
. - Fixed not working with
venv
. - Improved automatic cleaning of startup files.
- Added check for startup files left over after uninstall.
- Added
clean
option when running module directly.
- Fixed
point_at
bug. - Added color constants:
BLACK
,RED
,GREEN
,YELLOW
,BLUE
,MAGENTA
,CYAN
,WHITE
,BRIGHT_BLACK
,BRIGHT_RED
,BRIGHT_GREEN
,BRIGHT_YELLOW
,BRIGHT_BLUE
,BRIGHT_MAGENTA
,BRIGHT_CYAN
,BRIGHT_WHITE
,BLACK_BACKGROUND
,RED_BACKGROUND
,GREEN_BACKGROUND
,YELLOW_BACKGROUND
,BLUE_BACKGROUND
,MAGENTA_BACKGROUND
,CYAN_BACKGROUND
,WHITE_BACKGROUND
- Fixed
pathed_config
bug. - Added
activate
call. - Added arrow pointing to syntax error.
- Added config options
display_arrow
,arrow_head_character
,arrow_head_color
,arrow_tail_character
,arrow_tail_color
,syntax_error_color
- Fix comment skeleton in *customize.py output.
- README updated.
- Added
ExceptionWriter
class to allow for overriding. - Added
pathed_config
call to allow for multiple configs, activated by path of code file in frame. - Added environment variable
PYTHON_PRETTY_ERRORS
. If set to0
thenpretty_errors
will be disabled.
separator_character
can now be set toNone
or''
to disable header.- Improved install wizard.
- Spelling corrections.
- Fix for Python 2
- Added
mono
function to set useful config options for a monochrome terminal. - Added config option
timestamp_function
- Added
default_config
for reference. - May now use any characters in color prefixes (not just escape sequences)
- Removed config options
line_prefix
,code_prefix
,line_prefix_color
,code_prefix_color
- no longer needed because of above.
- Fix for python 2
- Added
__main__
for running with-m
- Removed post-install code (it doesn't work with
pip
-pip
has no post-install hook)
- Automated adding to
sitecustomize.py
- Added config options
always_display_bottom
,truncate_locals
,truncate_code
,line_prefix
,code_prefix
,line_prefix_color
,code_prefix_color
,local_len_color
- Site customize instructions.
- Added config options
display_locals
,display_trace_locals
,local_name_color
,local_value_color
- Nada
colorama
dependency
- Added
whitelist
andblacklist
- Fix README
- Python 2.7 compatibility
- Reworked to replace
sys.excepthook
instead ofsys.stderr
- Now automatically works out line length if line length is
0
(which is the default) - Added config options:
top_first
,stack_depth
,exception_above
,exception_below
,lines_before
,lines_after
,trace_lines_before
,trace_lines_after
,line_color
,code_color
,exception_color
,exception_arg_color
,prefix
,infix
,postfix
,line_number_first
- Removed config option:
default_color