Skip to content

Commit a6635c3

Browse files
authoredFeb 11, 2019
Merge pull request #69 from cs50/reader
remove stdin wrapper
2 parents 07ca0cb + f142346 commit a6635c3

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed
 

‎setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
package_dir={"": "src"},
1717
packages=["cs50"],
1818
url="https://github.com/cs50/python-cs50",
19-
version="3.0.1"
19+
version="3.0.2"
2020
)

‎src/cs50/cs50.py

-21
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,7 @@ def write(self, x):
2828
self.f.flush()
2929

3030

31-
class Reader:
32-
"""
33-
Disable buffering for input() as well.
34-
35-
https://bugs.python.org/issue24402
36-
"""
37-
38-
def __init__(self, f):
39-
self.f = f
40-
41-
def __getattr__(self, name):
42-
return getattr(self.f, name)
43-
44-
def fileno():
45-
raise OSError()
46-
47-
def read(self, size):
48-
return self.f.read(size)
49-
50-
5131
sys.stderr = flushfile(sys.stderr)
52-
sys.stdin = Reader(sys.stdin)
5332
sys.stdout = flushfile(sys.stdout)
5433

5534

0 commit comments

Comments
 (0)