mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
More 2to3 fixes in the Tools directory. Fixes #2893.
This commit is contained in:
parent
acbca71ea7
commit
bf82e374ee
38 changed files with 1999 additions and 2032 deletions
|
|
@ -28,7 +28,7 @@ class Varsubst:
|
|||
s = s[2:]
|
||||
continue
|
||||
name = m.group(1)
|
||||
if not self.dict.has_key(name):
|
||||
if name not in self.dict:
|
||||
raise error('No such variable: '+name)
|
||||
value = self.dict[name]
|
||||
if self.do_useindent and '\n' in value:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue