werner
unread,May 12, 2011, 5:14:07 AM5/12/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to akara
The 4suite list I used in the past is rejecting my posts, but I would
like this to be preserved so I hope it is o.k. to post it here.
I am still using 1.2 as I just didn't find the time to look at all the
new stuff yet.
I have been using Amara 1 for ages on Windows and am currently in the
process of moving my development machine to Ubuntu.
10.10/Maverick comes with Python 2.6 by default so wanted to stick
with this.
"import amara" causes a deprecation error for "sets", made the
following changes to amara/bindery.py to get rid of the deprecation
warning, maybe it is useful for others.
Changed:
import sets
to:
# for Python 2.6+
import sys
if sys.version_info < (2, 6):
import sets
Changed:
RESERVED_NAMES = sets.ImmutableSet(RESERVED_NAMES)
to:
if sys.version_info < (2, 6):
RESERVED_NAMES = sets.ImmutableSet(RESERVED_NAMES)
else:
RESERVED_NAMES = frozenset(RESERVED_NAMES)
Maybe this is useful for others.
Werner