File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 16
16
package_dir = {"" : "src" },
17
17
packages = ["cs50" ],
18
18
url = "https://github.com/cs50/python-cs50" ,
19
- version = "3.0.2 "
19
+ version = "3.1.0 "
20
20
)
Original file line number Diff line number Diff line change @@ -32,6 +32,18 @@ def write(self, x):
32
32
sys .stdout = flushfile (sys .stdout )
33
33
34
34
35
+ def eprint (* args , ** kwargs ):
36
+ """
37
+ Print an error message to standard error, prefixing it with
38
+ file name and line number from which method was called.
39
+ """
40
+ end = kwargs .get ("end" , "\n " )
41
+ sep = kwargs .get ("sep" , " " )
42
+ (filename , lineno ) = inspect .stack ()[1 ][1 :3 ]
43
+ print ("{}:{}: " .format (filename , lineno ), end = "" )
44
+ print (* args , end = end , file = sys .stderr , sep = sep )
45
+
46
+
35
47
def formatException (type , value , tb ):
36
48
"""
37
49
Format traceback, darkening entries from global site-packages directories
You can’t perform that action at this time.
0 commit comments