From 8dc1fb7bf0ee8727f8705d6ddc8919ca32d15b69 2008-05-30 06:55:26 From: vivainio2 Date: 2008-05-30 06:55:26 Subject: [PATCH] set import for python 2.3 in shell.py --- diff --git a/IPython/Shell.py b/IPython/Shell.py index 910ea70..1e91d54 100644 --- a/IPython/Shell.py +++ b/IPython/Shell.py @@ -46,6 +46,13 @@ from IPython.ipmaker import make_IPython from IPython.Magic import Magic from IPython.ipstruct import Struct +try: # Python 2.3 compatibility + set +except NameError: + import sets + set = sets.Set + + # Globals # global flag to pass around information about Ctrl-C without exceptions KBINT = False