Skip to content

Commit adad40e

Browse files
committed
reordered functions
1 parent a4e2432 commit adad40e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cs50/cs50.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ def write(self, x):
3333
sys.stdout = _flushfile(sys.stdout)
3434

3535

36-
def eprint(*args, **kwargs):
37-
raise RuntimeError("The CS50 Library for Python no longer supports eprint, but you can use print instead!")
38-
39-
4036
def _formatException(type, value, tb):
4137
"""
4238
Format traceback, darkening entries from global site-packages directories
@@ -63,6 +59,10 @@ def _formatException(type, value, tb):
6359
sys.excepthook = lambda type, value, tb: print(_formatException(type, value, tb), file=sys.stderr)
6460

6561

62+
def eprint(*args, **kwargs):
63+
raise RuntimeError("The CS50 Library for Python no longer supports eprint, but you can use print instead!")
64+
65+
6666
def get_char(prompt=None):
6767
raise RuntimeError("The CS50 Library for Python no longer supports get_char, but you can use get_string instead!")
6868

0 commit comments

Comments
 (0)