From 8cfb92e1793724383d5832100b587706cb2af6fb Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Tue, 4 Nov 2014 13:02:48 +0000 Subject: Remove pypi-checker --- import/pypi-checker.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 import/pypi-checker.py diff --git a/import/pypi-checker.py b/import/pypi-checker.py deleted file mode 100755 index a8bb8aa..0000000 --- a/import/pypi-checker.py +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env python - -from __future__ import print_function - -import requests -import json -import sys - -expected_content_type = 'text/html' - -r = requests.get('https://pypi.python.org/simple') - -if r.status_code != 200: - print("Couldn't fetch list of packages", file=sys.stderr) - sys.exit(1) - -content_type, _ = r.headers['content-type'].split(';') - -if content_type != expected_content_type: - print("Cannot parse input data: expected %s and got %s" - % (expected_content_type, content_type), file=sys.stderr) - -lines = [line for line in r.text.split('\n') if re.match('