mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-31 03:06:53 +00:00
Remove unused read_stdin, now ported to pep8
This commit is contained in:
parent
e4afd25312
commit
be9f2a5ffb
1 changed files with 1 additions and 11 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue