##// END OF EJS Templates
Small fix
Jonathan Frederic -
Show More
@@ -41,14 +41,13 b' def convert(nb, to_version):'
41
41
42 # Get input notebook version.
42 # Get input notebook version.
43 (version, version_minor) = get_version(nb)
43 (version, version_minor) = get_version(nb)
44 version_numbers = versions.keys()
45
44
46 # Check if destination is current version, if so return contents
45 # Check if destination is current version, if so return contents
47 if version == to_version:
46 if version == to_version:
48 return nb
47 return nb
49
48
50 # If the version exist, try to convert to it one step at a time.
49 # If the version exist, try to convert to it one step at a time.
51 elif to_version in version_numbers:
50 elif to_version in version:
52
51
53 # Get the the version that this recursion will convert to as a step
52 # Get the the version that this recursion will convert to as a step
54 # closer to the final revision. Make sure the newer of the conversion
53 # closer to the final revision. Make sure the newer of the conversion
General Comments 0
You need to be logged in to leave comments. Login now