From: Werner F. B. <wer...@fr...> - 2011-03-24 07:53:02
|
On 24/03/2011 02:42, David Goldsmith wrote: > Ah, yes, of course. > > On Wed, Mar 23, 2011 at 6:33 PM, Mark Hammond<ski...@gm...> wrote: >> On 24/03/2011 12:29 PM, David Goldsmith wrote: >>> >>> Thanks for the clarification. Is __builtin__.set equivalent in API >>> and functionality to sets.Set? >> >> AFAIK (and for how it is used in py2exe), yes. >> >>> If so, shouldn't the patch be as >>> simple as removing those references? >> >> You will need to ensure the "old" way works in earlier Python versions with >> no builtin set. >> >> Mark >> > > > Making this change in py2exe.build_exe.py works for me: # Python 2.6 deprecation warning ##import sets try: set except NameError: from sets import Set as set Werner |