Commit 2f1ac0c9 authored by Aurel's avatar Aurel

avoid naming confustion in between lib and class

parent b10a1fc4
......@@ -21,7 +21,7 @@ from __future__ import print_function
import argparse
import six
import http.client
from http import 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 != http.client.OK:
if response.status_code != 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