Commit b10a1fc4 authored by Aurel's avatar Aurel

use better lib

parent 67fdc908
...@@ -21,7 +21,7 @@ from __future__ import print_function ...@@ -21,7 +21,7 @@ from __future__ import print_function
import argparse import argparse
import six import six
from six.moves import http_client as httplib import http.client
import requests import requests
import sys import sys
...@@ -126,7 +126,7 @@ def getter(*args): ...@@ -126,7 +126,7 @@ def getter(*args):
print('%r not downloaded, problem %s' % (url, e)) print('%r not downloaded, problem %s' % (url, e))
sys.exit(1) sys.exit(1)
else: else:
if response.status_code != six.moves.http_client.OK: if response.status_code != http.client.OK:
print('%r not downloaded, HTTP code %s' % ( print('%r not downloaded, HTTP code %s' % (
url, response.status_code)) url, response.status_code))
sys.exit(1) 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