Show More
@@ -41,14 +41,13 b' def convert(nb, to_version):' | |||
|
41 | 41 | |
|
42 | 42 | # Get input notebook version. |
|
43 | 43 | (version, version_minor) = get_version(nb) |
|
44 | version_numbers = versions.keys() | |
|
45 | 44 | |
|
46 | 45 | # Check if destination is current version, if so return contents |
|
47 | 46 | if version == to_version: |
|
48 | 47 | return nb |
|
49 | 48 | |
|
50 | 49 | # If the version exist, try to convert to it one step at a time. |
|
51 |
elif to_version in version |
|
|
50 | elif to_version in version: | |
|
52 | 51 | |
|
53 | 52 | # Get the the version that this recursion will convert to as a step |
|
54 | 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