[yt-svn] commit/yt: MatthewTurk: Updating IPython API compatibility.

Bitbucket commits-noreply at bitbucket.org
Mon Mar 26 08:10:17 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/52d475960592/
changeset:   52d475960592
branch:      stable
user:        MatthewTurk
date:        2012-03-26 17:09:30
summary:     Updating IPython API compatibility.
affected #:  3 files

diff -r 8c971580c2d8e99ff60a8592ac2413117daf1a0a -r 52d475960592c0090edd6e3ae0ba7fb9bb7d7837 scripts/iyt
--- a/scripts/iyt
+++ b/scripts/iyt
@@ -24,7 +24,8 @@
 
 if IPython.__version__.startswith("0.10"):
     api_version = '0.10'
-elif IPython.__version__.startswith("0.11"):
+elif IPython.__version__.startswith("0.11") or \
+     IPython.__version__.startswith("0.12"):
     api_version = '0.11'
 
 if api_version == "0.10" and "DISPLAY" in os.environ:


diff -r 8c971580c2d8e99ff60a8592ac2413117daf1a0a -r 52d475960592c0090edd6e3ae0ba7fb9bb7d7837 yt/funcs.py
--- a/yt/funcs.py
+++ b/yt/funcs.py
@@ -259,7 +259,8 @@
     import IPython
     if IPython.__version__.startswith("0.10"):
        api_version = '0.10'
-    elif IPython.__version__.startswith("0.11"):
+    elif IPython.__version__.startswith("0.11") or \
+         IPython.__version__.startswith("0.12"):
        api_version = '0.11'
 
     stack = inspect.stack()


diff -r 8c971580c2d8e99ff60a8592ac2413117daf1a0a -r 52d475960592c0090edd6e3ae0ba7fb9bb7d7837 yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -471,7 +471,8 @@
         import IPython
         if IPython.__version__.startswith("0.10"):
             api_version = '0.10'
-        elif IPython.__version__.startswith("0.11"):
+        elif IPython.__version__.startswith("0.11") or \
+             IPython.__version__.startswith("0.12"):
             api_version = '0.11'
 
         local_ns = yt.mods.__dict__.copy()

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list