From be9f2a5ffbe134c3dd88dbe582e6aa5e27d4f913 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Wed, 20 Feb 2013 18:42:31 +0100 Subject: [PATCH] Remove unused read_stdin, now ported to pep8 --- flake8/main.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/flake8/main.py b/flake8/main.py index 79c20e2..a52b536 100644 --- a/flake8/main.py +++ b/flake8/main.py @@ -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: