Skip to content

Commit

Permalink
DOC: Use urllib.request in 3DImage example
Browse files Browse the repository at this point in the history
Only supporting Python 3.
  • Loading branch information
thewtex committed Jan 14, 2020
1 parent afe3568 commit c7e75b5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/3DImage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
"metadata": {},
"outputs": [],
"source": [
"try:\n",
" from urllib.request import urlretrieve\n",
"except ImportError:\n",
" from urllib import urlretrieve\n",
"from urllib.request import urlretrieve\n",
"import os\n",
"\n",
"import itk\n",
Expand Down Expand Up @@ -50,7 +47,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "0e3e868d39df4a38a9a8570080deaca4",
"model_id": "07a7f605229a4f8aa85ccd388ea88d47",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -84,7 +81,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.7"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit c7e75b5

Please sign in to comment.