move exc_info extraction to Shell._get_exc_info
move exc_info extraction to Shell._get_exc_info

Synchronizes expectations between `showtraceback()` and `showsyntaxerror()`, and ensures that `sys.last_type`, etc. have the right value.
ipython/ipython,ipython/ipython