Skip to content

Commit d44b097

Browse files
dizcologyengelke
authored andcommitted
* fix urllib2 import * use six
1 parent d16240c commit d44b097

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/analyze/beta_snippets_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
from six.moves.urllib.request import urlopen
1718
import time
18-
import urllib2
1919
import uuid
2020

2121
import beta_snippets
@@ -29,7 +29,7 @@
2929

3030
@pytest.fixture(scope='session')
3131
def video_path(tmpdir_factory):
32-
file = urllib2.urlopen(
32+
file = urlopen(
3333
'http://storage.googleapis.com/cloud-samples-data/video/cat.mp4')
3434
path = tmpdir_factory.mktemp('video').join('file.mp4')
3535
with open(str(path), 'wb') as f:

0 commit comments

Comments
 (0)