New submission from Berker Peksag:

Here is a patch that changes to use cls() instead of hardcoded 
TracebackException.

Serhiy also suggested on IRC to use the from_exception() classmethod in 
TracebackException's __init__ method.

----------
components: Library (Lib)
files: classmethod.diff
keywords: patch
messages: 247301
nosy: berker.peksag, rbcollins, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Class name hardcoded in TracebackException.from_exception()
type: enhancement
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40008/classmethod.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24710>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to