Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
return-in-init,
trailing-whitespace,
unused-import,
- unused-wildcard-import
+ unused-wildcard-import,
+ useless-return
global _attempt_start, _attempt_end
_attempt_start = start
_attempt_end = end
- return None
_last_line = None
_last_res = None
def __exit__(self, exc_type, exc_value, traceback):
if not exc_type:
raise self.ex
- return None
def items(x):
return x.items()
self.ex = ex
def __enter__(self):
add_ex_tb(self.ex)
- return None
def __exit__(self, exc_type, exc_value, traceback):
if not exc_type:
raise self.ex
add_ex_tb(exc_value)
add_ex_ctx(exc_value, self.ex)
- return None
def dump_traceback(ex):
stack = [ex]