Skip to content

Commit 0881f37

Browse files
authored
Fixed import statements
Changed `import itertools.imap as map` to `from itertools import imap as map` in two places
1 parent 39a066e commit 0881f37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/notebooks/Writing Python 2-3 compatible code.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@
17471747
"source": [
17481748
"# Python 2 and 3: option 3\n",
17491749
"try:\n",
1750-
" import itertools.imap as map\n",
1750+
" from itertools import imap as map\n",
17511751
"except ImportError:\n",
17521752
" pass\n",
17531753
"\n",
@@ -1845,7 +1845,7 @@
18451845
"source": [
18461846
"# Python 2 and 3: option 2\n",
18471847
"try:\n",
1848-
" import itertools.imap as map\n",
1848+
" from itertools import imap as map\n",
18491849
"except ImportError:\n",
18501850
" pass\n",
18511851
"\n",

0 commit comments

Comments
 (0)