Commit b10a1fc4 authored by Aurel's avatar Aurel

use better lib

parent 67fdc908
......@@ -21,7 +21,7 @@ from __future__ import print_function
import argparse
import six
from six.moves import http_client as httplib
import http.client
import requests
import sys
......@@ -126,7 +126,7 @@ def getter(*args):
print('%r not downloaded, problem %s' % (url, e))
sys.exit(1)
else:
if response.status_code != six.moves.http_client.OK:
if response.status_code != http.client.OK:
print('%r not downloaded, HTTP code %s' % (
url, response.status_code))
sys.exit(1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment