Skip to content

Commit 6d47001

Browse files
authored
Merge pull request #351 from jenssss/patch-1
Fixed import statements
2 parents 41d1c85 + 0881f37 commit 6d47001

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)