[yt-svn] commit/yt: MatthewTurk: Updating IPython API in "yt load" to work with 0.13, using TomR's method.
Bitbucket
commits-noreply at bitbucket.org
Mon Jul 23 21:33:31 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/4c9c7df55843/
changeset: 4c9c7df55843
branch: yt
user: MatthewTurk
date: 2012-07-24 06:33:22
summary: Updating IPython API in "yt load" to work with 0.13, using TomR's method.
affected #: 1 file
diff -r d832fd135d52eb84c262852bc34d575363ea11e5 -r 4c9c7df5584376437dca3b3abde664087dadfdae yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -998,10 +998,10 @@
import yt.mods
import IPython
- if IPython.__version__.startswith("0.10"):
+ from distutils import version
+ if version.LooseVersion(IPython.__version__) <= version.LooseVersion('0.10'):
api_version = '0.10'
- elif IPython.__version__.startswith("0.11") or \
- IPython.__version__.startswith("0.12"):
+ else:
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