Skip to content

Commit 867ef43

Browse files
authored
Merge pull request #66 from cs50/2019
removes eprintf
2 parents 562c4af + f797fe2 commit 867ef43

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
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="2.4.5"
19+
version="3.0.0"
2020
)

src/cs50/cs50.py

-12
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,6 @@ def read(self, size):
5353
sys.stdout = flushfile(sys.stdout)
5454

5555

56-
def eprint(*args, **kwargs):
57-
"""
58-
Print an error message to standard error, prefixing it with
59-
file name and line number from which method was called.
60-
"""
61-
end = kwargs.get("end", "\n")
62-
sep = kwargs.get("sep", " ")
63-
(filename, lineno) = inspect.stack()[1][1:3]
64-
print("{}:{}: ".format(filename, lineno), end="")
65-
print(*args, end=end, file=sys.stderr, sep=sep)
66-
67-
6856
def formatException(type, value, tb):
6957
"""
7058
Format traceback, darkening entries from global site-packages directories

0 commit comments

Comments
 (0)