Skip to content

Commit 33bba90

Browse files
tormodvoldenperexg
authored andcommitted
doc: Use getpass.getuser instead of os.getlogin
Closes: #15 Signed-off-by: Tormod Volden <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
1 parent fcdcff8 commit 33bba90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/alsa-python-coverage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import APICoverage
2929
from pprint import pprint
3030
import time
31+
import getpass
3132

3233
__author__ = "Aldrin Martoq <[email protected]>"
3334
__version__ = "1.0"
@@ -357,7 +358,7 @@ def look_usage(name):
357358
""" % ("-"*72,
358359
__version__,
359360
time.asctime(time.gmtime(time_start)),
360-
os.getlogin(),
361+
getpass.getuser(),
361362
os.uname()[1],
362363
time_diff
363364
))

0 commit comments

Comments
 (0)