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: