mirror of
https://github.com/python/cpython.git
synced 2025-11-11 22:55:08 +00:00
Yet another mini fix to pack/grid info.
This commit is contained in:
parent
6878436366
commit
a5f875f504
2 changed files with 4 additions and 4 deletions
|
|
@ -668,7 +668,7 @@ class Pack:
|
||||||
for i in range(0, len(words), 2):
|
for i in range(0, len(words), 2):
|
||||||
key = words[i][1:]
|
key = words[i][1:]
|
||||||
value = words[i+1]
|
value = words[i+1]
|
||||||
if value[0] == '.':
|
if value[:1] == '.':
|
||||||
value = self._nametowidget(value)
|
value = self._nametowidget(value)
|
||||||
dict[key] = value
|
dict[key] = value
|
||||||
return dict
|
return dict
|
||||||
|
|
@ -745,7 +745,7 @@ class Grid:
|
||||||
for i in range(0, len(words), 2):
|
for i in range(0, len(words), 2):
|
||||||
key = words[i][1:]
|
key = words[i][1:]
|
||||||
value = words[i+1]
|
value = words[i+1]
|
||||||
if value[0] == '.':
|
if value[:1] == '.':
|
||||||
value = self._nametowidget(value)
|
value = self._nametowidget(value)
|
||||||
dict[key] = value
|
dict[key] = value
|
||||||
return dict
|
return dict
|
||||||
|
|
|
||||||
|
|
@ -668,7 +668,7 @@ class Pack:
|
||||||
for i in range(0, len(words), 2):
|
for i in range(0, len(words), 2):
|
||||||
key = words[i][1:]
|
key = words[i][1:]
|
||||||
value = words[i+1]
|
value = words[i+1]
|
||||||
if value[0] == '.':
|
if value[:1] == '.':
|
||||||
value = self._nametowidget(value)
|
value = self._nametowidget(value)
|
||||||
dict[key] = value
|
dict[key] = value
|
||||||
return dict
|
return dict
|
||||||
|
|
@ -745,7 +745,7 @@ class Grid:
|
||||||
for i in range(0, len(words), 2):
|
for i in range(0, len(words), 2):
|
||||||
key = words[i][1:]
|
key = words[i][1:]
|
||||||
value = words[i+1]
|
value = words[i+1]
|
||||||
if value[0] == '.':
|
if value[:1] == '.':
|
||||||
value = self._nametowidget(value)
|
value = self._nametowidget(value)
|
||||||
dict[key] = value
|
dict[key] = value
|
||||||
return dict
|
return dict
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue