Merge with 3.3

This commit is contained in:
Terry Jan Reedy 2014-01-28 23:14:12 -05:00
commit d67650e241
2 changed files with 4 additions and 7 deletions

View File

@ -254,8 +254,7 @@ class Debugger:
self.sync_source_line()
def show_frame(self, stackitem):
frame, lineno = stackitem
self.frame = frame
self.frame = stackitem[0] # lineno is stackitem[1]
self.show_variables()
localsviewer = None

View File

@ -83,11 +83,9 @@ class SearchEngine:
try:
prog = re.compile(pat, flags)
except re.error as what:
try:
msg, col = what
except:
msg = str(what)
col = -1
args = what.args
msg = args[0]
col = arg[1] if len(args) >= 2 else -1
self.report_error(pat, msg, col)
return None
return prog