Commits

Florent Xicluna  committed 470062e

Remove unused read_stdin, now ported to pep8

  • Participants
  • Parent commits ddc1c9f
  • Branches flint-merge

Comments (0)

Files changed (1)

File flake8/main.py

+# -*- coding: utf-8 -*-
 import os
 import sys
-import select
 
 from flake8.engine import get_style_guide
 
     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: