[Python-3000-checkins] r55923 - python/branches/p3yk/Lib/plat-mac/aepack.py
guido.van.rossum
python-3000-checkins at python.org
Tue Jun 12 06:15:29 CEST 2007
Author: guido.van.rossum
Date: Tue Jun 12 06:15:24 2007
New Revision: 55923
Modified:
python/branches/p3yk/Lib/plat-mac/aepack.py
Log:
I'm guessing this module broke when Neal ripped out the types module --
it used 'list' both as a local variable and as the built-in list type.
Renamed the local variable since that was easier.
Modified: python/branches/p3yk/Lib/plat-mac/aepack.py
==============================================================================
--- python/branches/p3yk/Lib/plat-mac/aepack.py (original)
+++ python/branches/p3yk/Lib/plat-mac/aepack.py Tue Jun 12 06:15:24 2007
@@ -100,10 +100,10 @@
data = data[2:]
return AE.AECreateDesc('utxt', data)
if isinstance(x, list):
- list = AE.AECreateList('', 0)
+ lst = AE.AECreateList('', 0)
for item in x:
- list.AEPutDesc(0, pack(item))
- return list
+ lst.AEPutDesc(0, pack(item))
+ return lst
if isinstance(x, dict):
record = AE.AECreateList('', 1)
for key, value in x.items():
More information about the Python-3000-checkins
mailing list