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 [
30
30
+ Kyle Dunn ([ @kdunn926 ] ( https://github.com/kdunn926 ) )
31
31
+ Brian Su ([ @brianbbsu ] ( https://github.com/brianbbsu ) )
32
32
+ [ @0dminnimda ] ( https://github.com/0dminnimda )
33
+ + Mike Miller ([ @Axe319 ] ( https://github.com/axe319 ) )
33
34
34
35
## Full timeline of vpython development
35
36
Original file line number Diff line number Diff line change 10
10
# both of those.
11
11
12
12
from ._notebook_helpers import _isnotebook , __is_spyder
13
- import platform
14
- __p = platform . python_version ()
13
+ import sys
14
+ __v = sys . version_info
15
15
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
18
18
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
21
21
22
22
if __require_notebook and (not _isnotebook ):
23
23
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