Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4cd36ef

Browse filesBrowse files
dizcologyengelke
authored andcommitted
* fix urllib2 import * use six
1 parent 24ca22e commit 4cd36ef
Copy full SHA for 4cd36ef

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎video/cloud-client/analyze/beta_snippets_test.py

Copy file name to clipboardExpand all lines: video/cloud-client/analyze/beta_snippets_test.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.