From 60574b6b39b28e6da559f6614966ec9f1e7186f0 Mon Sep 17 00:00:00 2001 From: Chris Howk Date: Mon, 3 Jun 2024 09:49:58 -0400 Subject: [PATCH] Update astropy.rst for urllib change The module astropy.extern.six.moves.urllib no long exists. Change the behavior in this tutorial to use the python urllib. --- source/astropy/astropy.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/astropy/astropy.rst b/source/astropy/astropy.rst index 399e762..21aa4e1 100644 --- a/source/astropy/astropy.rst +++ b/source/astropy/astropy.rst @@ -32,7 +32,7 @@ Please download this the content, either by clicking on the link or by executing this python code:: - from astropy.extern.six.moves.urllib import request + from urllib import request import tarfile url = 'http://python4astronomers.github.io/_downloads/astropy_examples.tar' tarfile.open(fileobj=request.urlopen(url), mode='r|').extractall()