From 4dc30e0bb42d0514fa57b1d38a1450c7d203932c 2007-08-28 17:51:38 From: vivainio Date: 2007-08-28 17:51:38 Subject: [PATCH] ipy_exportdb now tolerates new style aliases' --- diff --git a/IPython/Extensions/ipy_exportdb.py b/IPython/Extensions/ipy_exportdb.py index 54b5f2f..d19cfc0 100644 --- a/IPython/Extensions/ipy_exportdb.py +++ b/IPython/Extensions/ipy_exportdb.py @@ -55,7 +55,10 @@ def export(filename = None): if aliases: lines.extend(['','# === Alias definitions ===','']) for k,v in aliases.items(): - lines.append("ip.defalias('%s', %s)" % (k, repr(v[1]))) + try: + lines.append("ip.defalias('%s', %s)" % (k, repr(v[1]))) + except (AttributeError, TypeError): + pass env = ip.db.get('stored_env') if env: diff --git a/IPython/Release.py b/IPython/Release.py index 49d11d5..1020810 100644 --- a/IPython/Release.py +++ b/IPython/Release.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Release data for the IPython project. -$Id: Release.py 2677 2007-08-27 18:22:15Z vivainio $""" +$Id: Release.py 2681 2007-08-28 17:51:38Z vivainio $""" #***************************************************************************** # Copyright (C) 2001-2006 Fernando Perez @@ -22,7 +22,7 @@ name = 'ipython' # because bdist_rpm does not accept dashes (an RPM) convention, and # bdist_deb does not accept underscores (a Debian convention). -revision = '2676' +revision = '2680M' version = '0.8.2.svn.r' + revision.rstrip('M')