mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Merge with 3.5
This commit is contained in:
commit
48e4bd6a02
1 changed files with 2 additions and 2 deletions
|
|
@ -299,7 +299,7 @@ access e.g. the ``importlib.abc`` module by doing the following::
|
|||
|
||||
import sys
|
||||
|
||||
if sys.version[0] == 3:
|
||||
if sys.version_info[0] == 3:
|
||||
from importlib import abc
|
||||
else:
|
||||
from importlib2 import abc
|
||||
|
|
@ -311,7 +311,7 @@ Python 2::
|
|||
|
||||
import sys
|
||||
|
||||
if sys.version[0] > 2:
|
||||
if sys.version_info[0] > 2:
|
||||
from importlib import abc
|
||||
else:
|
||||
from importlib2 import abc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue