File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ We are certain the list is incomplete; please let one of us know by opening an [
3030+ Kyle Dunn ([ @kdunn926 ] ( https://github.com/kdunn926 ) )
3131+ Brian Su ([ @brianbbsu ] ( https://github.com/brianbbsu ) )
3232+ [ @0dminnimda ] ( https://github.com/0dminnimda )
33+ + Mike Miller ([ @Axe319 ] ( https://github.com/axe319 ) )
3334
3435## Full timeline of vpython development
3536
Original file line number Diff line number Diff line change 1010# both of those.
1111
1212from ._notebook_helpers import _isnotebook , __is_spyder
13- import platform
14- __p = platform . python_version ()
13+ import sys
14+ __v = sys . version_info
1515
16- # Delete platform now that we are done with it
17- del platform
16+ # Delete sys now that we are done with it
17+ del sys
1818
19- __ispython3 = (__p [ 0 ] == '3' )
20- __require_notebook = (not __ispython3 ) or (__p [ 2 ] < '5' ) # Python 2.7 or 3.4 require Jupyter notebook
19+ __ispython3 = (__v . major == 3 )
20+ __require_notebook = (not __ispython3 ) or (__v . minor < 5 ) # Python 2.7 or 3.4 require Jupyter notebook
2121
2222if __require_notebook and (not _isnotebook ):
2323 s = "The non-notebook version of vpython requires Python 3.5 or later."
You can’t perform that action at this time.
0 commit comments