[New-bugs-announce] [issue33311] cgitb: remove parentheses when the error is in module

Stéphane Blondon report at bugs.python.org
Wed Apr 18 14:39:52 EDT 2018


New submission from Stéphane Blondon <stephane.blondon at gmail.com>:

The cgitb module displays a traceback in text or html.

When a module is called, there are no parameters (displayed as '()'). I
think they are unnecessary and the parentheses should be removed.

### example for the text version ###
$ python3 demo.py
[...]
 /home/stephane/src/cgitest/demo.py in <module>()
    7 def func1(a, b):                         ^-- to be removed?
[...]
### end of example ###

It occurs in both text and html versions.

----------
components: Library (Lib)
messages: 315459
nosy: sblondon
priority: normal
severity: normal
status: open
title: cgitb: remove parentheses when the error is in module
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33311>
_______________________________________


More information about the New-bugs-announce mailing list