From 759d5e21506bb65804c4b9802a0d99372f04804f 2013-09-23 22:22:47 From: Jonathan Frederic Date: 2013-09-23 22:22:47 Subject: [PATCH] Small fix --- diff --git a/IPython/nbformat/convert.py b/IPython/nbformat/convert.py index 94516fd..47eb9df 100644 --- a/IPython/nbformat/convert.py +++ b/IPython/nbformat/convert.py @@ -41,14 +41,13 @@ def convert(nb, to_version): # Get input notebook version. (version, version_minor) = get_version(nb) - version_numbers = versions.keys() # Check if destination is current version, if so return contents if version == to_version: return nb # If the version exist, try to convert to it one step at a time. - elif to_version in version_numbers: + elif to_version in version: # Get the the version that this recursion will convert to as a step # closer to the final revision. Make sure the newer of the conversion