Skip to content

Commit

Permalink
Fix urllib2 [(#2059)](#2059)
Browse files Browse the repository at this point in the history
* fix urllib2 import

* use six
  • Loading branch information
dizcology authored and leahecole committed Sep 15, 2023
1 parent 30f14f3 commit 9e59c00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions videointelligence/samples/analyze/beta_snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from six.moves.urllib.request import urlopen
import time
import urllib2
import uuid

import beta_snippets
Expand All @@ -29,7 +29,7 @@

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

0 comments on commit 9e59c00

Please sign in to comment.