Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* fix urllib2 import

* use six
  • Loading branch information
dizcology authored and danoscarmike committed Sep 30, 2020
1 parent f8acf96 commit a1c3bfd
Showing 1 changed file with 2 additions and 2 deletions.
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 a1c3bfd

Please sign in to comment.