File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1047,7 +1047,7 @@ def reevaluate(self):
10471047 self .iy , self .ix = self .scr .getyx ()
10481048
10491049 self .cpos = 0
1050- indent = next_indentation (self .s , self .config .tab_length )
1050+ indent = repl . next_indentation (self .s , self .config .tab_length )
10511051 self .s = ''
10521052 self .scr .refresh ()
10531053
Original file line number Diff line number Diff line change 2424from __future__ import with_statement
2525import collections
2626import inspect
27+ import keyword
2728import pydoc
2829import re
2930import sys
@@ -232,9 +233,11 @@ def getargspec(func, f):
232233
233234def is_eval_safe_name (string ):
234235 if py3 :
235- return all (part .isidentifier () for part in string .split ('.' ))
236+ return all (part .isidentifier () and not keyword .iskeyword (part )
237+ for part in string .split ('.' ))
236238 else :
237- return all (_name .match (part ) for part in string .split ('.' ))
239+ return all (_name .match (part ) and not keyword .iskeyword (part )
240+ for part in string .split ('.' ))
238241
239242
240243def is_callable (obj ):
You can’t perform that action at this time.
0 commit comments