Remove unused read_stdin, now ported to pep8

This commit is contained in:
Florent Xicluna 2013-02-20 18:42:31 +01:00
parent e4afd25312
commit be9f2a5ffb

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
import os
import sys
import select
from flake8.engine import get_style_guide
@ -53,16 +53,6 @@ def check_code(code, ignore=(), complexity=-1, reporter=None):
return flake8_style.input_file('-', lines=code.split('\n'))
def read_stdin():
# wait for 1 second on the stdin fd
reads, __, __ = select.select([sys.stdin], [], [], 1.)
if reads == []:
print('input not specified')
raise SystemExit(1)
return sys.stdin.read()
try:
from setuptools import Command
except ImportError: