Project

General

Profile

« Previous | Next » 

Revision 3659

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.

View differences:

exc.py
10 10
import term
11 11
import util
12 12

  
13
def reraise(): raise
13
def reraise(e=None): raise
14 14

  
15 15
def raise_(e): raise e
16 16

  

Also available in: Unified diff