summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-11-04 13:02:48 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-11-04 13:02:48 +0000
commit8cfb92e1793724383d5832100b587706cb2af6fb (patch)
tree5b2b84ec8ff5da03a0fe9ba3bceb27d02582f636
parentd4123a307a8627a9cd257fdab49e7aac875b53cf (diff)
downloadimport-8cfb92e1793724383d5832100b587706cb2af6fb.tar.gz
Remove pypi-checker
-rwxr-xr-ximport/pypi-checker.py26
1 files changed, 0 insertions, 26 deletions
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('<a href=')]
-
-for line in lines:
- print(line) \ No newline at end of file