Skip to content

Commit 9a86683

Browse files
author
Kareem Zidane
authored
Merge branch 'develop' into ProxyFix
2 parents 7383f11 + 242442d commit 9a86683

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
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.5.0"
19+
version="3.0.1"
2020
)

src/cs50/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
sys.path = [p for p in sys.path if p not in ("", os.getcwd())]
1111

1212
# Import cs50_*
13-
from .cs50 import eprint, get_char, get_float, get_int, get_string
13+
from .cs50 import get_char, get_float, get_int, get_string
1414
try:
1515
from .cs50 import get_long
1616
except ImportError:

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)