Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc180e23

Browse files
committed
Change method for getting default user name, some sudo versions working with getpass
1 parent4024049 commitc180e23

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎testgres/defaults.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
importdatetime
2-
importgetpass
32
importos
43
importstruct
54
importuuid
@@ -18,7 +17,7 @@ def default_username():
1817
Return default username (current user).
1918
"""
2019

21-
returngetpass.getuser()
20+
returnos.getlogin()
2221

2322

2423
defgenerate_app_name():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp