File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1616 package_dir = {"" : "src" },
1717 packages = ["cs50" ],
1818 url = "https://github.com/cs50/python-cs50" ,
19- version = "2.4.2 "
19+ version = "2.4.3 "
2020)
Original file line number Diff line number Diff line change @@ -35,18 +35,21 @@ class Reader:
3535 https://bugs.python.org/issue24402
3636 """
3737
38+ def __init__ (self , f ):
39+ self .f = f
40+
3841 def __getattr__ (self , name ):
39- return getattr (sys . __stdin__ , name )
42+ return getattr (self . f , name )
4043
4144 def fileno ():
4245 raise OSError ()
4346
4447 def read (self , size ):
45- return sys . __stdin__ .read (size )
48+ return self . f .read (size )
4649
4750
4851sys .stderr = flushfile (sys .stderr )
49- sys .stdin = Reader ()
52+ sys .stdin = Reader (sys . stdin )
5053sys .stdout = flushfile (sys .stdout )
5154
5255
You can’t perform that action at this time.
0 commit comments